Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Redirect user to the page they were previously on when logging in #32

Closed
cmbirk opened this issue Nov 19, 2013 · 1 comment
Closed

Redirect user to the page they were previously on when logging in #32

cmbirk opened this issue Nov 19, 2013 · 1 comment

Comments

@cmbirk
Copy link
Contributor

cmbirk commented Nov 19, 2013

This can be done with the Redirect::back() method.

@cmbirk
Copy link
Contributor Author

cmbirk commented Jan 22, 2014

Redirect::back() can't be used for POST routes. It redirects the user to the GET route they viewed before the POST.

This passes a hidden field in the login that is populated by URL::previous() and the POST route then redirects.

@cmbirk cmbirk closed this as completed Jan 22, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant