- Issue created by @useernamee
- 🇸🇮Slovenia useernamee Ljubljana
It looks like this is not realy a lupus_ce_renderer but a designed behavior in
\Drupal\Core\EventSubscriber\RedirectResponseSubscriber::checkRedirectUrl
the destination parameter has precedence and is set as targetUrl on RedirectResponse. - 🇦🇹Austria fago Vienna
This is a Drupal feature - In general it makes sense, but not when we are doing admin fallback redirects (See https://www.drupal.org/project/lupus_ce_renderer/issues/3272161 ✨ Implement admin fallback redirect Fixed )
Could we undo/prevent this Drupal logic somehow - only for Drupal admin fallback redirects, but keep the original path as is, with destination parameter?
- @useernamee opened merge request.
- Status changed to Needs review
over 1 year ago 9:39am 14 April 2023 - 🇸🇮Slovenia useernamee Ljubljana
I've simply removed destination query parameter from request. I think this won't have any undesirable consequences (in cases where destination query parameter is actually desired). If later will be the case we can make it a bit more complicated and just add a
lupus_ce_renderer_redirect
attribute to request and then write a service decorator forRedirectResponseSubscriber
that has another condition before applying the destination query parameter override.For now this solution works:
<base-url>/ce-api/node/add/article?destination=bar => "<base-url>/node/add/article?destination=bar"
- last update
over 1 year ago 9 pass -
useernamee →
committed f0f5fa2a on 2.x
Issue #3353656 by useernamee, fago: Destination query parameter should...
-
useernamee →
committed f0f5fa2a on 2.x
- Status changed to Fixed
over 1 year ago 11:29am 18 April 2023 - 🇸🇮Slovenia useernamee Ljubljana
Works on our ci environments and no regressions were recorded, Thus merging.
Automatically closed - issue fixed for 2 weeks with no activity.