From 7bee175152cd34005bbda6e7e936e80298f2accc Mon Sep 17 00:00:00 2001 From: tozhou Date: Mon, 18 Nov 2024 17:10:32 +0000 Subject: [PATCH] NCL-8833 Change UI-Logger to console log for LegacyUrlRedirector --- src/hooks/useLegacyUrlRedirector.ts | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/hooks/useLegacyUrlRedirector.ts b/src/hooks/useLegacyUrlRedirector.ts index 8b01b360..35018c66 100644 --- a/src/hooks/useLegacyUrlRedirector.ts +++ b/src/hooks/useLegacyUrlRedirector.ts @@ -2,12 +2,9 @@ import { useEffect } from 'react'; import { URL_BASE_PATH } from 'common/constants'; -import { uiLogger } from 'services/uiLogger'; - export const useLegacyUrlRedirector = () => { useEffect(() => { const { pathname, hash } = window.location; - const oldUrl = window.location; if (pathname.startsWith(URL_BASE_PATH + '/') && hash.startsWith('#/')) { let newPath = '/' + hash.substring(2); // Remove '#/' and concatenate @@ -24,7 +21,7 @@ export const useLegacyUrlRedirector = () => { newPath = newPath.substring(buildsIndex); } - uiLogger.log(`Redirecting to new URL: ${newPath}`, undefined, { oldUrl, newUrl: newPath }); + console.log(`Redirecting to new URL: ${newPath}`); window.location.href = URL_BASE_PATH + newPath; } }, []);