Problem/Motivation
The Clear Selection button within the view header containing the summary of selections does not respect the redirect destination; instead it redirects to the current page. This is inconsistent with other form actions (e.g. performing a bulk action, or canceling out of the bulk action from a configuration or confirmation page) which do respect the redirect destination.
Steps to reproduce
- Add a bulk action to any view
- Go to the page containing the view, including a destination parameter other than the page you're currently on
- Select any content in the view
- Use the Clear Selection option in the VBO header
- Note that you do not land on the destination provided in the URL
Proposed resolution
Respect the destination when clearing selection.
Remaining tasks
User interface changes
API changes
Data model changes
Issue fork views_bulk_operations-3548038
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
astonvictor commentedComment #4
astonvictor commentedThe MR should work. It updates the
clearSelectioncallback for the submit.thanks
Comment #7
graber commented