From 9288e1ab711d46d9627d2067962c6079927d4fea Mon Sep 17 00:00:00 2001 From: John Hagerman Date: Wed, 14 Aug 2024 20:31:14 -0400 Subject: [PATCH] fix(redirect-casong): fixed lowercase issue --- packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx b/packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx index 26a7df2e65a..651a7b08482 100644 --- a/packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx +++ b/packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx @@ -196,6 +196,7 @@ const App = ({ // OBTAIN FULL PATH BY COMBINING PATHNAME AND HASH (CLIENT-ONLY ROUTING) let fullPath = (window.location.pathname + window.location.hash).toLowerCase() + let fullPathCaseSensitive = (window.location.pathname + window.location.hash).toLowerCase() // SPLIT IT INTO PARTS TO HANDLE LANGUAGE DETECTION const pathSegments = fullPath.split('/').filter(Boolean) @@ -272,7 +273,7 @@ const App = ({ console.log('Redirecting to v5') // Using **WALLET_V5_LINK** as a fallback for webpack builder. if (useFullPathForRedirect.some((prefix) => fullPath.startsWith(prefix))) { - window.location.href = `${window?.WALLET_V5_LINK + removeHash(fullPath)}` + window.location.href = `${window?.WALLET_V5_LINK + removeHash(fullPathCaseSensitive)}` } else { window.location.href = window?.WALLET_V5_LINK }