Problem/Motivation
Based on #343535: Enable bookmarking of AJAX views and https://www.drupal.org/node/3552223, it appears that starting with Drupal 11.3.x, the AJAX Views bookmarking functionality in the core/views module is enabled by default and cannot be disabled.
There are scenarios where disabling this functionality would be desirable. For example, a page may contain multiple View blocks with AJAX enabled and exposed filters. Because bookmarking is always enabled, each interaction can add additional query parameters to the URL. This can result in excessively long and cluttered URLs, which may be undesirable in some cases. In other situations, the bookmarking functionality may simply not be needed, and simpler URLs would be preferred.
In addition, the current bookmarking implementation has been reported to cause issues, as noted in https://www.drupal.org/project/drupal/issues/343535#comment-16579695.
Steps to reproduce
is currently no setting or configuration option to disable this behavior.
Proposed resolution
Allow the AJAX Views bookmarking functionality to be enabled or disabled through the View's configuration settings.
Remaining tasks
| Comment | File | Size | Author |
|---|---|---|---|
| views-disable-ajax-view-bookmarking-3604351-2.patch | 1.18 KB | takkuyu |
Issue fork drupal-3604351
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
takkuyu commentedComment #6
cilefen commentedComment #7
quietone commentedHi, Issues for Drupal core should be targeted to the 'main' branch, our primary development branch. Changes are made on the main branch first, and are then back ported as needed according to the Core change policies. The version the problem was discovered on should be stated in the issue summary Problem/Motivation section. Thanks.