[BUG] Unauth/Auth guard routing prevents using browser back button to get out of the site.
Closed this issue · 0 comments
AndresMWeber commented
Describe the bug
When you are unauthorized and you try to navigate to the index you are redirected to /login using router.push. This modifies the window history and means that the browser back button attempts to go back to / but is immediately redirected to /login which is a very frustrating situation if you want to go back to where you were previously.
To Reproduce
Explained in description.
Expected behavior
Press the back button and get to the previous page BEFORE the redirect and the page you attempted to access.
Screenshots
If applicable, add screenshots to help explain your problem.
Device
- Windows Desktop
- Linux Desktop
- MacOS Desktop
- iOS device
- Android device
Browser
- Chrome
- Firefox
- Safari
- Opera (wtf)
- IE/Edge (wtf)
(optional) Additional Info
- Device: [e.g. iPhone6]
- OS: [e.g. iOS8.1]
- Browser [e.g. stock browser, safari]
- Version [e.g. 22]
Additional context
Add any other context about the problem here.