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

modified URL to keep user on correct route #3485

Merged
merged 2 commits into from
Feb 16, 2024

Conversation

arohan-agate
Copy link
Collaborator

@arohan-agate arohan-agate commented Feb 14, 2024

Resolves #3339

Ended up being a really simple change. Accessed the routeId through the userRoute object. If the userRoute is defined, or in other words, the user is on a custom route, we modify the URL passed to navbar so that if the user signs in, they stay on the same route. if the user is not on a custom route, nothing happens.

Things to check before submitting the PR
  • I've written a descriptive PR title.

Copy link
Member

@misaugstad misaugstad left a comment

Choose a reason for hiding this comment

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

Looks good!

@misaugstad misaugstad merged commit 2012404 into develop Feb 16, 2024
@misaugstad misaugstad deleted the 3339-logging-in-removes-from-route branch February 16, 2024 17:47
@misaugstad misaugstad mentioned this pull request Feb 16, 2024
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.

Logging in after starting a route removes you from that route
2 participants