Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix preserve url anchor #5371

Closed
wants to merge 4 commits into from
Closed

Conversation

prigaux
Copy link
Contributor

@prigaux prigaux commented Feb 15, 2022

Since CAS 5.2, hash param in url is added twice to login submit url. Example of resulting url: #foo=bar#foo=bar

The regression comes from commit 984dfaf (*) , "queryParams" is added to "action". Then "hash" is added to "action". The issue is that "queryParams" contains both the query params AND the hash.

This pull request uses location.search to fix the issue.
It has been tested in production (for CAS protocol).

(*) backported to 5.2 5.3 6.0 52d5fb2

fixes regression introduced in commit 984dfaf "fix issue with mfa not keeping request params"
(location.hash is either empty or starts with "#")
@apereocas-bot apereocas-bot added this to the 6.5.1 milestone Feb 15, 2022
@github-actions
Copy link

This pull request has been open and inactive for 7 days. It will be closed shortly.

@github-actions github-actions bot added the Stale label Feb 23, 2022
@github-actions github-actions bot closed this Feb 23, 2022
@prigaux
Copy link
Contributor Author

prigaux commented Jan 3, 2023

NB: applied in 6.6.x with commit c00d8b0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants