- πΊπΈUnited States smustgrave
This appears to be a duplicate of π Allow form redirects to ignore ?destination query parameter Fixed
Currently when controller returns redirect response the destination still takes over, causing controller to update request object. That's because of code in \Drupal\Core\EventSubscriber\RedirectResponseSubscriber::checkRedirectUrl()
$destination = $request->query->get('destination');
if ($destination) {
// The 'Location' HTTP header must always be absolute.
$destination = $this->getDestinationAsAbsoluteUrl($destination, $request->getSchemeAndHttpHost());
try {
$response->setTargetUrl($destination);
Make a destination service to update request object or document current behaviour
decide on approach, review patch
Closed: duplicate
11.0 π₯
Enhances developer experience.
The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.
Not all content is available!
It's likely this issue predates Contrib.social: some issue and comment data are missing.
This appears to be a duplicate of π Allow form redirects to ignore ?destination query parameter Fixed