diff --git a/static/js/indexPage.js b/static/js/indexPage.js index 949df1c..860f0b2 100644 --- a/static/js/indexPage.js +++ b/static/js/indexPage.js @@ -115,7 +115,7 @@ async function logout() { async function authenticate() { if (!window.authenticatedRole) { - if (window.returnURL !== window.ROOT_PATH) { + if (!window.returnURL.startsWith(window.location.origin)) { const creds = await getPasswordModal(); if (!window.vxFormsCredentials || !Object.values(window.vxFormsCredentials).includes(creds.password.toLowerCase())