Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Action plugins are supposed to be re-usable. But Drupal\node\Form\DeleteMultiple has a hardcoded redirect back to admin/content. If you re-use that in a different view, you are redirect to the wrong view.
Proposed resolution
The confirm_form_route_name redirect should add a destination back to the current page.
Remaining tasks
User interface changes
API changes
Comment | File | Size | Author |
---|---|---|---|
#5 | bulkform_add_destination-2413461-5-complete.patch | 2.19 KB | geertvd |
#5 | bulkform_add_destination-2413461-5-test.patch | 1.39 KB | geertvd |
Comments
Comment #1
geertvd CreditAttribution: geertvd commentedComment #2
geertvd CreditAttribution: geertvd commentedComment #3
Anonymous (not verified) CreditAttribution: Anonymous commentedAfter testing manually, I can confirm this patch adds the destination properly.
Comment #4
alexpottLet's add a test.
Comment #5
geertvd CreditAttribution: geertvd commentedComment #6
geertvd CreditAttribution: geertvd commentedComment #8
pjbaert@geertvd added the test
Comment #9
alexpottNice. This issue is a normal bug fix, and doesn't include any disruptive changes, so it is allowed per https://www.drupal.org/core/beta-changes. Committed 27f69c2 and pushed to 8.0.x. Thanks!