@remix-run/router 1.0.4-pre.0 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +4 -4
- package/dist/router.cjs.js +7 -2
- package/dist/router.cjs.js.map +1 -1
- package/dist/router.js +7 -2
- package/dist/router.js.map +1 -1
- package/dist/router.umd.js +7 -2
- package/dist/router.umd.js.map +1 -1
- package/dist/router.umd.min.js +2 -2
- package/dist/router.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/router.ts +5 -1
package/package.json
CHANGED
package/router.ts
CHANGED
|
@@ -1604,7 +1604,11 @@ export function createRouter(init: RouterInit): Router {
|
|
|
1604
1604
|
typeof window !== "undefined" &&
|
|
1605
1605
|
typeof window.location !== "undefined"
|
|
1606
1606
|
) {
|
|
1607
|
-
|
|
1607
|
+
if (replace) {
|
|
1608
|
+
window.location.replace(redirect.location);
|
|
1609
|
+
} else {
|
|
1610
|
+
window.location.assign(redirect.location);
|
|
1611
|
+
}
|
|
1608
1612
|
return;
|
|
1609
1613
|
}
|
|
1610
1614
|
|