@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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remix-run/router",
3
- "version": "1.0.4-pre.0",
3
+ "version": "1.0.4",
4
4
  "description": "Nested/Data-driven/Framework-agnostic Routing",
5
5
  "keywords": [
6
6
  "remix",
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
- window.location.replace(redirect.location);
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