Skip to content

Commit

Permalink
Merge pull request #6501 from blockchain/fix/update-routing
Browse files Browse the repository at this point in the history
feat(routing): update prod exclusions
  • Loading branch information
TheLeoB authored Oct 28, 2024
2 parents 47e8430 + 9b2d8aa commit 8d3149a
Showing 1 changed file with 7 additions and 5 deletions.
12 changes: 7 additions & 5 deletions packages/blockchain-wallet-v4-frontend/src/scenes/app.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,22 +126,22 @@ const excludedProduction = [
'/exchange',
'/prove/instant-link/callback',
'/refer',
'/sofi',
// '/sofi',
'/#/verify-email',
'/#/login?product=exchange',
'/wallet-options-v4.json',
'/#/prove',
'/#/reset-two-factor',
'/#/open',
// '/#/reset-two-factor',
// '/#/open',
'/login?product=wallet&platform=ios',
'/login?product=wallet&platform=android',
'/signup/product=exchange&platform=ios',
'/signup/product=exchange&platform=android',
'/#/login?product=wallet&platform=ios',
'/#/login?product=wallet&platform=android',
'/#/signup/product=exchange&platform=ios',
'/#/signup/product=exchange&platform=android',
'/#/sofi'
'/#/signup/product=exchange&platform=android'
// '/#/sofi'
]

const excludedStaging = [
Expand Down Expand Up @@ -309,13 +309,15 @@ const App = ({
console.log('xx', 'Redirecting to v5', fullPathCaseSensitive)
// Using **WALLET_V5_LINK** as a fallback for webpack builder.
if (useFullPathForRedirect.some((prefix) => fullPath.startsWith(prefix))) {
// eslint-disable-next-line
console.log(
'xx',
`${window?.WALLET_V5_LINK + removeHash(fullPathCaseSensitive)}`,
'using full path for redirect'
)
window.location.href = `${window?.WALLET_V5_LINK + removeHash(fullPathCaseSensitive)}`
} else {
// eslint-disable-next-line
console.log('xx', window?.WALLET_V5_LINK, 'not using full path for redirect')
window.location.href = window?.WALLET_V5_LINK
}
Expand Down

0 comments on commit 8d3149a

Please sign in to comment.