Please sign in to comment.
Redirect users to original request after login
This commit does two things: 1. It passes `origin: request.url` into the `github_auth_url()` named route, which will preserve that request and return it with the OmniAuth hash. 2. The `create` action on the sessions_controller then either redirects to the originally requested URL or, if that doesn't exist, to the old default `posts_url` named route.
- Loading branch information...
Showing with 2 additions and 2 deletions.