Ookma-Kyi
10/21/2022, 8:16 PMredirectback()
https://github.com/elpete/redirectBack. According to it's description it uses flash storage to redirect back to the previous page. In my login, registration and forgotpassword controllers I am using the following code to redirect back if the user is already logged in to prevent him from creating additional accounts, reset password and log in again:
if ( auth.isLoggedIn() ) {
redirectBack();
}
The issue if the user hits the back button on their browser instead of navigating normally, when they try to access the "restricted"
page it redirects them the the last page they accessed normal. So for example:
1. Profile Page
2. Change Password
Back Button to Profile
Then try to access any of the 3 controllers I listed above via the url, it redirects to the Change Password page instead of Profile which I find weird. Any ideas?