Hey folks,

i have a multilingual setup with an active language detection via different domain TLDs. Using "protected_pages" module in this setup results in missing destination parameter when a secured path is opened in browser.

This leads to a redirect loop when user is entering the correct password. Instead of getting forwarded to the node the password form is loaded again and again. This can be bypassed by entering the correct path manually in the URL bar. The correct node is loading once a correct password is entered.

Instead of giving me
https://www.DOMAIN.TLD/protected-page?destination=/PATH-TO-NODE&protected_page=PID

I am getting this redirect opening a password protected node
https://www.DOMAIN.TLD/protected-page?protected_page=PID

This problem can be reproduced by activating a more than one language with a domain language validation via TLD.

Anyone having the same troubles?

Command icon 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

r81d3r created an issue. See original summary.

g.manohar@live.com’s picture

StatusFileSize
new674 bytes

Fixed the missing destination parameter for multilingual site

r81d3r’s picture

thank you g.manohar@live.com for creating this patch. it is working on multiple of my multilang setups and therefore in my opinion ready for commit.

parisek’s picture

Thank you, resolved my issue on multi domain drupal site

parisek’s picture

Version: 8.x-1.2 » 8.x-1.x-dev
Status: Active » Reviewed & tested by the community

Working great in production, opened MR for easier merge, RTBC

hardik_patel_12’s picture

Thanks, g.manohar@live.com for the patch it's working fine.