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)
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
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?
Создайте аккаунт сегодня, чтобы получить доступ к эксклюзивным функциям и стать частью нашего замечательного сообщества!
Регистрация| Похожие посты | Ответы | Просмотры | Активность | |
|---|---|---|---|---|
|
0
мар. 15
|
5833 | |||
|
1
мая 24
|
2972 | |||
|
1
апр. 18
|
13331 | |||
|
1
сент. 24
|
1870 | |||
|
1
апр. 24
|
2722 |
1. Use the live chat to ask your questions.
2. The operator answers within a few minutes.