When adding a query destination parameter to a cross-domain link, we expect to return to the original domain after processing. But, by default, destination parameter are relative only, so it redirects to the targeted domain instead of the original one.
Drupal strips any "destination" parameter that is not internal, so we instead add a custom "destination_domain" parameter that we prepend to the original "destination" parameter after validation (trusted host, no parameter, no fragment).
Current implementation
For now, we only support cross-domain redirects to the current page to avoid any unwanted side-effects.
Issue fork domain-3570210
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedComment #4
mably commentedComment #5
mably commentedComment #6
mably commentedComment #7
mably commentedComment #9
mably commentedComment #11
mably commentedComment #12
mably commented