diff --git a/static/js/indexPage.js b/static/js/indexPage.js index 860f0b2..45c0ba8 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.startsWith(window.location.origin)) { + if (!window.returnURL.startsWith(window.location.origin) && window.location.href.includes("?access_token=") ) { const creds = await getPasswordModal(); if (!window.vxFormsCredentials || !Object.values(window.vxFormsCredentials).includes(creds.password.toLowerCase())