跳至内容
菜单
此问题已终结
1 回复
7884 查看

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)

形象
丢弃
最佳答案

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.

形象
丢弃
编写者

In what do I have to change the method?

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

相关帖文 回复 查看 活动
0
3月 15
5318
1
5月 24
2230
1
4月 18
12618
1
9月 24
1304
1
4月 24
2194