This topic is locked
[SOLVED]

 Redirecting to specific page when click on the home icon

4/23/2020 4:59:45 PM
PHPRunner General questions
A
abhijit2020 author

Hi Everyone!
I have an after successful login event that redirect the users of 3 groups (viz. employee, manager and admin) to their respective dashboards(e.g. employee_dashboard, manager_dashboard and admin_dashboard) after successful login. It is working fine.
Now, I would like to redirect the users to their respective dashboard when they click the little home icon beside the breadcrumb of any pages.Currently, it is redirecting to landing page (e.g. menu page). Is the menu page part of Welcome page in the "Events" tool of PHPRunner? Where I should be coding the event trigger to achieve the above function. Any suggestion would be helpful.
Thank you in advance.
Abhi

Admin 4/23/2020

I would probably implement BeforeProcess event of the Welcome page and redirect the user to one of those three start pages based on who is logged in. You can use exactly the same code you use in AfterSuccessfulLogin event.

A
abhijit2020 author 4/25/2020



I would probably implement BeforeProcess event of the Welcome page and redirect the user to one of those three start pages based on who is logged in. You can use exactly the same code you use in AfterSuccessfulLogin event.


Thank you, Sergey. I was able to achieved the desired function with the Before Process event.