Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
7952 Lượt xem

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)

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

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.

Ảnh đại diện
Huỷ bỏ
Tác giả

In what do I have to change the method?

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

Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 3 15
5366
1
thg 5 24
2302
1
thg 4 18
12700
1
thg 9 24
1358
1
thg 4 24
2235