If we redirect a login page when user access an unauthorized page, user can't be able to leave the page through 'Go Back'.
1. User access unauthorized page (/dashboard)
2. Redirect user to login page (/dashboard/login)
3. User press `Go Back`
4. Go to `/dashbaord` and loop start again from step 1
We can escape from go back loop by replacing instead of normal navigating.
Any background context you want to provide?
The development environment is not setup on my machine so this pr has not been tested.
What this PR does / why we need it?
If we redirect a login page when user access an unauthorized page, user can't be able to leave the page through 'Go Back'.
We can escape from go back loop by replacing instead of normal navigating.
Any background context you want to provide?
The development environment is not setup on my machine so this pr has not been tested.
What are the relevant tickets?
Fixes #
Checklist