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

refactor(sign-in): redirect to intended page after signing in #990

Merged
merged 1 commit into from
Oct 17, 2024

Conversation

aofei
Copy link
Member

@aofei aofei commented Oct 16, 2024

Fixes #985
Fixes #986

spx-gui/src/stores/user.ts Show resolved Hide resolved
spx-gui/src/stores/user.ts Outdated Show resolved Hide resolved
spx-gui/src/stores/user.ts Outdated Show resolved Hide resolved
await userStore.completeSignIn()

const returnTo = params.get('returnTo')
window.location.replace(returnTo != null ? decodeURIComponent(returnTo) : '/')
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

params.get 应该已经做过一次 decodeURIComponent

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes goplus#985
Fixes goplus#986

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
@qiniu-ci
Copy link

This PR has been deployed to the preview environment. You can explore it using the preview URL.

Warning

Please note that deployments in the preview environment are temporary and will be automatically cleaned up after a certain period. Make sure to explore it before it is removed. For any questions, contact the Go+ Builder team.

@nighca nighca merged commit 3d93c30 into goplus:dev Oct 17, 2024
4 checks passed
@aofei aofei deleted the sign-in branch October 17, 2024 01:34
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Redirect to intended page after Casdoor login Remove local copy of casdoor-js-sdk and use upstream package
3 participants