Quantcast
Channel: Issues for Drupal core
Viewing all articles
Browse latest Browse all 300130

BulkForm fails to redirect to the expected page if destination query parameter is set

$
0
0

Problem/Motivation

When a view displays bulk form field, we are able to do bulk actions on the listed content.
If the page has a destination query parameter set, some actions (which require an additional step like a confirm form for example) do not work anymore. The redirect to destination occurs before the redirect to $operation_definition['confirm_form_route_name'].

Steps to reproduce

  1. Install using Umami to have some content available
  2. Go to the content overview (admin/content)
  3. Add a destination parameter in the URL (eg. destination=/)
  4. Select one or more content
  5. Choose the "Delete content" action then "Apply to selected items"

Expected: a confirm form is displayed
Current: we are redirected on the destination

Proposed resolution

#2950883: Allow form redirects to ignore ?destination query parameter introduced the \Drupal\Core\Form\FormStateInterface::setIgnoreDestination() helper. Call it before the redirect.


Viewing all articles
Browse latest Browse all 300130

Latest Images

Trending Articles



Latest Images

<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>