File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed
packages/blockchain-wallet-v4-frontend/src/scenes Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change @@ -149,7 +149,6 @@ const excludedStaging = [
149
149
'/exchange' ,
150
150
// '/prove/instant-link/callback',
151
151
// '/refer',
152
-
153
152
// '/#/verify-email',
154
153
'/#/login?product=exchange' ,
155
154
'/wallet-options-v4.json' ,
@@ -221,10 +220,18 @@ const App = ({
221
220
setDynamicRoutingState ( false )
222
221
return
223
222
}
224
-
225
- // OBTAIN FULL PATH BY COMBINING PATHNAME AND HASH (CLIENT-ONLY ROUTING)
226
- let fullPath = ( window . location . pathname + window . location . hash ) . toLowerCase ( )
227
- const fullPathCaseSensitive = window . location . pathname + window . location . hash
223
+ let fullPath
224
+ let fullPathCaseSensitive
225
+ if ( window . location . hash && window . location . hash !== '#/' ) {
226
+ // OBTAIN FULL PATH BY COMBINING PATHNAME AND HASH (CLIENT-ONLY ROUTING)
227
+ fullPath = ( window . location . pathname + window . location . hash ) . toLowerCase ( )
228
+ fullPathCaseSensitive = window . location . pathname + window . location . hash
229
+ } else {
230
+ // OBTAIN FULL PATH BY COMBINING PATHNAME AND SEARCH QUERY, TO DEAL WITH HASH ROUTING
231
+ // ADDING HASH AT THE END OF THE PATH IF THERE ISN'T ONE
232
+ fullPath = ( window . location . pathname + window . location . search ) . toLowerCase ( )
233
+ fullPathCaseSensitive = window . location . pathname + window . location . search
234
+ }
228
235
229
236
// SPLIT IT INTO PARTS TO HANDLE LANGUAGE DETECTION
230
237
const pathSegments = fullPath . split ( '/' ) . filter ( Boolean )
You can’t perform that action at this time.
0 commit comments