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

  1. Add a bulk action to any view
  2. Go to the page containing the view, including a destination parameter other than the page you're currently on
  3. Select any content in the view
  4. Use the Clear Selection option in the VBO header
  5. 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

Command icon 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

bgustafson created an issue. See original summary.

astonvictor’s picture

Version: 4.3.x-dev » 4.4.x-dev

astonvictor’s picture

Status: Active » Needs review

The MR should work. It updates the clearSelection callback for the submit.
thanks

graber made their first commit to this issue’s fork.

graber’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.