admin 3/27/2024 | |
To make sure that your redirect works you also need to issue the following command after header() call: In regards to where to place a dropdown with a landing page selection - I believe that that best place for this is user profile page. |
D
|
druck281 author 3/27/2024 |
Not sure if it was just the exit(); call but the code below works now. I cleaned up a couple other things so maybe it is a combination. I also found that sometimes testing on localhost does not give you good results. Maybe something is getting stuck in cache but once I cleaned up the code and uploaded to my sandbox account, it was working. Anyway, here is the working code from my AfterSuccessfulLogin event. Thanks Sergy! //Set the Username in the top right of the menu |
M
|
MikeT 3/28/2024 |
I recently did the same, but the redirect in AfterSuccessfulLogin didn't play well with the 2factor setup. i.e. when the user is shown the 2factor setup screen then the redirect like that doesn't work, at least in my experiments. I then used the default menu page as the global landing page and redirected from an event there (having stored the user's landing page url in a session var after succesful login). Do you use 2factor auth? |
D
|
druck281 author 4/8/2024 |
@MikeT - I don't use 2FA but that is a good thought. Is that working for you? I am actually looking to rework this anyway since I found that my solution only works on login. Many of my users have gotten used to clicking the Project Logo to return to the landing page but my code does not change that so they still get the default application landing page rather than their custom dashboard. |
D
|
druck281 author 4/8/2024 |