Closed ezuhaib closed 10 years ago
Looks like I had introduced redirects in this commit https://github.com/ezuhaib/psymic/commit/f29a6ea9a76d4264bd1caf4099e475843ac22a0b because the more standard way of doing these redirects i.e https://github.com/plataformatec/devise/wiki/How-To:-Redirect-back-to-current-page-after-sign-in,-sign-out,-sign-up,-update would not work well with the user/edit link which users would access through the "unsubscribe" links in their emails.
If access to a page is denied to a user, and the user continues hanging around the website without signing in, once he signs-in he is redirected to the page he was denied access... This is due to the page's address being saved in user's cookies, due to my custom logic for rescuing from CanCan exceptions.