File tree Expand file tree Collapse file tree 2 files changed +7
-22
lines changed Expand file tree Collapse file tree 2 files changed +7
-22
lines changed Original file line number Diff line number Diff line change @@ -1177,7 +1177,7 @@ module ControlPanel = {
1177
1177
}
1178
1178
}
1179
1179
1180
- @bs. val @bs. scope ("window. location" ) external origin : string = "origin"
1180
+ @bs. val @bs. scope (( "window" , " location") ) external origin : string = "origin"
1181
1181
@react.component
1182
1182
let make = (
1183
1183
~actionIndicatorKey : string ,
@@ -1217,7 +1217,9 @@ module ControlPanel = {
1217
1217
}
1218
1218
})
1219
1219
1220
- origin ++ (router .route ++ querystring )
1220
+ let url = origin ++ (router .route ++ querystring )
1221
+ Next .Router .replace (router , url )
1222
+ url
1221
1223
}
1222
1224
<>
1223
1225
<div className = "mr-2" >
@@ -1437,19 +1439,6 @@ let default = () => {
1437
1439
| (None , _ ) => initialResContent
1438
1440
}
1439
1441
1440
- // We cleanup all the unwanted query attributes on load to make
1441
- // sure the url is not getting out of sync with the actual content
1442
- React .useEffect1 (() => {
1443
- // Clean out the url after loading all query params
1444
- if router .asPath !== "/try" {
1445
- Next .Router .replace (router , "/try" )
1446
- } else {
1447
- ()
1448
- }
1449
-
1450
- None
1451
- }, [router .route ])
1452
-
1453
1442
// We don't count to infinity. This value is only required to trigger
1454
1443
// rerenders for specific components (ActivityIndicator)
1455
1444
let (actionCount , setActionCount ) = React .useState (_ => 0 )
You can’t perform that action at this time.
0 commit comments