Attempt at fixing sign-out link after session expires

Note that this still does not seem to work; needs more investigation, but not a showstopper for the feature going out!

Signed-off-by: Carlo Costino <carlo.costino@gsa.gov>
This commit is contained in:
Carlo Costino
2023-10-11 17:10:53 -04:00
parent d4d36087d4
commit 4fff35590b

View File

@@ -26,7 +26,8 @@ window.GOVUK.Modules.TimeoutPopup = window.GOVUK.Modules.TimeoutPopup || {};
}
function expireUserSession() {
window.location.assign('/sign-out?next=' + window.location.pathname);
var signOutLink = '/sign-out?next=' + window.location.pathname;
window.location.assign(signOutLink);
}
function signoutUser() {