I have a requirement in which a variable url (https://mysite.com/a_variable_page/specific_part_within_page/?some_other_info_to_be_stripped_and_processed) will be sent as a link to a user of our enterprise app. Due to security reasons, they must sign on every time they access the webapp so any link will automatically redirect to /login. The requirement states that after login they would then be redirected to the passed link instead of the home page.
I assume this can be done with session storage? As part of the redirect, it would grab that url and store it, recalling it and routing to it after a successful login. Are there other methods that would be worth considering? Are there limitations with this method?
This is all in Angular 5.