Skip to content

Commit

Permalink
Merge pull request #6437 from blockchain/fix/redirect-casing
Browse files Browse the repository at this point in the history
fix(redirect-casing): fixed lowercase issue
  • Loading branch information
jhagerman-bc authored Aug 15, 2024
2 parents b633ad6 + 9288e1a commit 855b976
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -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
}
Expand Down

0 comments on commit 855b976

Please sign in to comment.