From 9f6715c72ef1f9f481acb0b209779ac70abcda46 Mon Sep 17 00:00:00 2001 From: Shayan Monadjemi Date: Wed, 2 Oct 2024 08:34:29 -0400 Subject: [PATCH] Update index.js reverting the redirect to login page for papers --- src/index.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.js b/src/index.js index e659cbeb8..785d713e3 100644 --- a/src/index.js +++ b/src/index.js @@ -381,9 +381,8 @@ document.addEventListener('DOMContentLoaded', async () => { updateUI(auth0Client, query) } } else if ( window.location.href.includes("room_") || window.location.href.includes("paper_") ){ - window.location.href = `/program/redirect.html?return=${window.location.pathname.slice(1)}`; - //console.log("here, we were going to switch the url to " + `redirect.html?return=${window.location.pathname.slice(1)}`) - // window.location.href = `redirect.html?return=${window.location.pathname.slice(1)}`; + // uncomment the line below to redirect for login + //window.location.href = `/program/redirect.html?return=${window.location.pathname.slice(1)}`; }