From a4fc535421b605b6b835fb23bed7dd102a528775 Mon Sep 17 00:00:00 2001 From: BermetK123 Date: Wed, 15 Jan 2025 09:08:55 -0600 Subject: [PATCH] removing console logs --- blocks/identity-block/utils/validate-redirect-url.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/blocks/identity-block/utils/validate-redirect-url.js b/blocks/identity-block/utils/validate-redirect-url.js index 2acbd5696..49212341f 100644 --- a/blocks/identity-block/utils/validate-redirect-url.js +++ b/blocks/identity-block/utils/validate-redirect-url.js @@ -3,11 +3,8 @@ const validateURL = (url) => { try { const urlObject = new URL(url, window.location.origin); - console.log("urlObject " + urlObject.origin) - console.log("window " +window.location.origin) if (urlObject.origin === window.location.origin) { - console.log("urlObject pth " + urlObject.pathname); if(urlObject.pathname === "/"){ return urlObject.pathname @@ -17,9 +14,9 @@ const validateURL = (url) => { return `${urlObject.origin}${urlObject.pathname}` } } - sessionStorage.setItem("ArcXP_redirectUrl", "/"); return "/"; + } catch (error) { const storedRedirect = sessionStorage.getItem("ArcXP_redirectUrl"); if (storedRedirect && storedRedirect.startsWith("/")) {