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

Fixed: Browser back button should not navigate to Login page after login(#2p7b92p) #17

Merged
merged 1 commit into from
Aug 10, 2022

Conversation

disha1202
Copy link
Contributor

@disha1202 disha1202 commented Aug 10, 2022

Issue: When navigate to order details page with unauthenticated user, user is first navigated to Login page. When using browser back button, it opens login page again.

Expected behaviour: The user should be navigated to the order detail page in admin dashboard.

Solution: 1. Used replace instead of push to remove login route from history.
2. Updated login guard to navigate to order detail page if user is authenticated

@adityasharma7 adityasharma7 merged commit 909084a into hotwax:main Aug 10, 2022
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.

2 participants