only accesses the viewId of the current page. Can't you use a setPropertyListener on the navigation commands to write the requested page's ID to a memory attribute that is then accessible from your login page?
I cant use setpropertyListener.
Our scenario is when one user say USER1 does any transaction, a mail is sent to a list of approvers. This mail will contain the URL link to the page which when clicked, an approver can navigate directly to the page. In the URL i will be sending the transaction ID using which the details in the page will be populated.
In this scenario i want to navigate to the original requested page by the user after authentication and not to a welcome page.
Any way i can achieve this?
Thanks and Regards
I believe if you looked at this documentation in section 22.214.171.124 you can find the loginUrl is different and is actually pointing to the user's requested page!
Edit: As explained by Frank this is not recommended
In the documentation link you have sent, the value for loginUrl is using ctx.getViewRoot().getViewId();
This will get me the login page viewid and not the page which the user had requested.
Sorry my mistake, I'll update code in the next post