miscService.redirectUser exists to redirect the user back through uPortal login in the case where it seems that API calls are failing because no longer logged in.
One big downside of that is losing the user's place in the application. They end up back at the uPortal-home main page (/web).
This Pull Request improves upon that status quo by leveraging uPortal server's existing refUrl feature. This sets refUrl on the redirect to uPortal Login, so that once uPortal Login has re-established a logged in uPortal session, uPortal Login redirects back to the refUrl rather than to the uPortal-home front page, and thus the logging back in is less disruptive, returning the user to where they were.
Review for security considerations
[x] The change has been examined for security impact.
PR considerations checklist:
[x] Updates CHANGELOG.md to reflect this PR's change.
miscService.redirectUser exists to redirect the user back through uPortal login in the case where it seems that API calls are failing because no longer logged in.
One big downside of that is losing the user's place in the application. They end up back at the uPortal-home main page (
/web
).This Pull Request improves upon that status quo by leveraging uPortal server's existing
refUrl
feature. This setsrefUrl
on the redirect to uPortal Login, so that once uPortal Login has re-established a logged in uPortal session, uPortal Login redirects back to the refUrl rather than to the uPortal-home front page, and thus the logging back in is less disruptive, returning the user to where they were.Review for security considerations
PR considerations checklist:
CHANGELOG.md
to reflect this PR's change.