Skip to Content
Меню
Вам необхідно зареєструватися, щоб взаємодіяти зі спільнотою.
Це запитання позначене
1 Відповісти
7926 Переглядів

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
5335
1
трав. 24
2251
1
квіт. 18
12659
1
вер. 24
1339
1
квіт. 24
2224