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: login redirect missing route #8990

Merged
merged 4 commits into from
Nov 8, 2024
Merged

fix: login redirect missing route #8990

merged 4 commits into from
Nov 8, 2024

Conversation

JessChowdhury
Copy link
Member

Closes #8920 - login form does not redirect after form submit.

In handleAuthRedirect the route parameter was unintentionally getting overwritten.

const redirectRoute = encodeURIComponent(
route + Object.keys(searchParams ?? {}).length
const redirectRoute =
(route !== '/admin' ? route : '') +
Copy link
Contributor

Choose a reason for hiding this comment

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

This needs to be pulled from the config.

Copy link
Member Author

Choose a reason for hiding this comment

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

Updated!

@DanRibbens DanRibbens merged commit 010ac2a into beta Nov 8, 2024
52 checks passed
@DanRibbens DanRibbens deleted the fix/login-redirects branch November 8, 2024 18:41
Copy link
Contributor

🚀 This is included in version v3.0.0-beta.127

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

Successfully merging this pull request may close these issues.

Navigation breaks after login when visiting a collection link
2 participants