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

feat: Use location.assign instead of location.replace for signin_redirect #52

Merged
merged 1 commit into from
Oct 30, 2024

Conversation

nighca
Copy link
Contributor

@nighca nighca commented Oct 29, 2024

Currently Sdk.signin_redirect uses location.replace to do redirection, which prevents the user from navigating back to the current page after being redirected to the login page.

This PR changes it to location.assign to preserve the history.

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

@nighca nighca changed the title Use location.assign instead of location.replace for signin_redirect fix: Use location.assign instead of location.replace for signin_redirect Oct 29, 2024
@hsluoyz hsluoyz changed the title fix: Use location.assign instead of location.replace for signin_redirect feat: Use location.assign instead of location.replace for signin_redirect Oct 30, 2024
@hsluoyz
Copy link
Member

hsluoyz commented Oct 30, 2024

@dacongda plz review

@hsluoyz hsluoyz merged commit 5366a61 into casdoor:master Oct 30, 2024
3 of 4 checks passed
Copy link

🎉 This PR is included in version 0.16.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

4 participants