İçereği Atla
Menü
Bu soru işaretlendi
1 Cevapla
7873 Görünümler

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
Vazgeç
En İyi Yanı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.

Avatar
Vazgeç
Üretici

In what do I have to change the method?

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

İlgili Gönderiler Cevaplar Görünümler Aktivite
0
Mar 15
5309
1
May 24
2228
1
Nis 18
12607
1
Eyl 24
1300
1
Nis 24
2188