Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
7964 มุมมอง

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?

Related Posts ตอบกลับ มุมมอง กิจกรรม
0
มี.ค. 15
5372
1
พ.ค. 24
2315
1
เม.ย. 18
12710
1
ก.ย. 24
1365
1
เม.ย. 24
2239