Problem/Motivation

In my redirect destination I want to use a query parameter from the url. But the token [current-page:query:?] is not working. It returns itself as a string. The other tokens (such as arguments, date, etc.) seem to work.

Example:
URL: localhost/my-login?foo=bar
redirect destination: /my-target?query=[current-page:query:foo]
Expected redirect: /my-target?query=bar
Created redirect: /my-target?query=[current-page:query:foo]

Steps to reproduce

See example above

Comments

der_wilko created an issue. See original summary.

gaurav.kapoor’s picture

I am not sure how to fix this one, but will it even work till https://www.drupal.org/project/drupal/issues/2903336 is resolved?

tyapchyc’s picture

Try to reproduce with the latest module and Drupal version and enable the token module.
Work as expected.

rsvelko’s picture

Status: Active » Fixed

marking as fixed then.
@tyapchyc, thanks!

Status: Fixed » Closed (fixed)

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