digitalpoint
Well-known member
- Affected version
- 2.1.2
Finally figured out how to reproduce a bug that users have been reporting where they get prompted to login to a specific page. If they enter the right username/login the first time, it sends them where to the expected page. If they fail the login and try again, then it sends them to the home page after logging in.
If you add the "redirect" param to the $viewParms for the "login" template, it seems to work. Without digging into it, I'm guessing when you don't specify the redirect variable, it's using $_SERVER['HTTP_REFERER'], which is /login/login after the first failed login.
If you add the "redirect" param to the $viewParms for the "login" template, it seems to work. Without digging into it, I'm guessing when you don't specify the redirect variable, it's using $_SERVER['HTTP_REFERER'], which is /login/login after the first failed login.