mysociety / remit

Research Management Information Tool (ReMIT) for Médecins Sans Frontieres' Manson Unit
Other
2 stars 1 forks source link

Send users back to the page they were on when they sign in #115

Open stevenday opened 8 years ago

stevenday commented 8 years ago

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

stevenday commented 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.