Overslaan naar inhoud
Menu
Je moet geregistreerd zijn om te kunnen communiceren met de community.
Deze vraag is gerapporteerd
1 Beantwoorden
7890 Weergaven

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
Annuleer
Beste antwoord

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
Annuleer
Auteur

In what do I have to change the method?

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

Gerelateerde posts Antwoorden Weergaven Activiteit
0
mrt. 15
5321
1
mei 24
2232
1
apr. 18
12621
1
sep. 24
1311
1
apr. 24
2198