Skip to Content
Menú
This question has been flagged
1 Respondre
7866 Vistes

How can I redirect users directly after they login.

They should be directed to the last page they visited and not to their "profile (url= www.example.com/my/home)

Avatar
Descartar
Best Answer

You will have to apply your logic in _login_redirect method of the web controller.

In this method, fetch the URL you want to redirect and return it from the method.

You will have to think about how you will manage the user's activity or last visited pages and how you will fetch the last visited page to redirect after login.

Avatar
Descartar
Autor

In what do I have to change the method?

Is it not possible to fetch the last visited page from the users browser histroy?

Related Posts Respostes Vistes Activitat
0
de març 15
5305
1
de maig 24
2225
1
d’abr. 18
12596
1
de set. 24
1298
1
d’abr. 24
2188