Im using devise with omniauth for signing in users with facebook. I want them to be redirected after signing in to the page they were on after before signing in.
I\'
You can pass a parameter like: /auth/facebook?referrer=/path/to/redirect
/auth/facebook?referrer=/path/to/redirect
After the Facebook authentication this parameter will be available to you in env["omniauth.params"].
env["omniauth.params"]