Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

FOSUserBundle: Remember last page before login

Is there an easy way to configure FOSUserBundle to remember the page a User came from before login? I don't want Users to end up on the Startpage after they already browsed to what they are interested in.

like image 953
Andresch Serj Avatar asked Oct 25 '25 02:10

Andresch Serj


1 Answers

There are many ways to configure how the user is redirected after a login. See this document for details:

http://symfony.com/doc/current/cookbook/security/form_login.html

This applies to Symfony in general, but it will work the same if you are using FOSUserBundle

like image 108
Carlos Granados Avatar answered Oct 27 '25 01:10

Carlos Granados



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!