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?
| Comment | File | Size | Author |
|---|
Issue fork protected_pages-3138261
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 #2
g.manohar@live.com commentedFixed the missing destination parameter for multilingual site
Comment #3
r81d3r commentedthank 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.
Comment #4
parisekThank you, resolved my issue on multi domain drupal site
Comment #6
parisekWorking great in production, opened MR for easier merge, RTBC
Comment #7
hardik_patel_12 commentedThanks, g.manohar@live.com for the patch it's working fine.