From 4fff35590bd542770ca8597f047962e8fc05da8e Mon Sep 17 00:00:00 2001 From: Carlo Costino Date: Wed, 11 Oct 2023 17:10:53 -0400 Subject: [PATCH] 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 --- app/assets/javascripts/timeoutPopup.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/assets/javascripts/timeoutPopup.js b/app/assets/javascripts/timeoutPopup.js index f4618419c..0cfe2e12a 100644 --- a/app/assets/javascripts/timeoutPopup.js +++ b/app/assets/javascripts/timeoutPopup.js @@ -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() {