Open stevenday opened 8 years ago
https://github.com/plataformatec/devise/wiki/How-To:-Redirect-back-to-current-page-after-sign-in,-sign-out,-sign-up,-update has some examples of how to do this automatically in the controller, which should be safer.
I think we can do this via a query parameter on the sign in link's url, that then tells devise where to send them back to. Although we'll have to check that this can't be hijacked in any way