How to redirect particular role users to different page,I saw a PR about this can someone explain it

what does this statement means
change boot session home page to redirect to whichever page based on user/role via a method

I got this statement from this PR ‘redirection fix for role based redirect using the role_home_page hook by mvirtra · Pull Request #4495 · frappe/frappe · GitHub

here is the screen shot of the PR

R Mehta also commented on the PR and asked to make some changes

and this is the last statement of the PR

how can i implement it, it talks about making some changes in the set_user_info() in frappe/auth.py
I am a newbie to frappe so basically I want to redirect a user of role ‘nhcp_role’ to a particular route
how can i do it?

Hi,

A tricks can be just set as ERPNext bookmark in browser to the landing page you want the this users.
No need to code, just explain how to use bookmark in browser

Thanks @FHenry
but can you explain briefly about how can I do it

Hi,

Do you mean how to use bookmark in web browser ? It depend on the web browser your user use. Try to find bookmark in help of the browser help pages.

Each ERPNext page have unique URL, If a user ask for https://youterpnexturl.fr/thepagewhereyouare, the login page will be displayed and after login, user will be redirected to the linked page.

hey @FHenry

can you explain this part briefly, screenshots would be more helpful
Thanks for the Information

Hi,

For exemple your ERPNext ULR is https://myfavoriteerpnext.erpnext.com/

If you in accounting menu the URL change and it is

https://myfavoriteerpnext.erpnext.com/app/accounting

Bookmark as favorite this URL in your browser, and tell your users to always use the bookmark to connect to EPRNext, they always been redirect to this page after login

If you don’t know what is a bookmark, check the documentation : Bookmarks in Firefox | Firefox Help

Thanks @FHenry
I will try this out