@tanstack/react-router 1.99.7 → 1.99.9

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": "@tanstack/react-router",
3
- "version": "1.99.7",
3
+ "version": "1.99.9",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/route.ts CHANGED
@@ -768,7 +768,6 @@ export class Route<
768
768
  // Optional
769
769
  children?: TChildren
770
770
  originalIndex?: number
771
- router?: AnyRouter
772
771
  rank!: number
773
772
  lazyFn?: () => Promise<LazyRoute<any>>
774
773
  _lazyPromise?: Promise<void>
package/src/router.ts CHANGED
@@ -1855,7 +1855,7 @@ export class Router<
1855
1855
  if (reloadDocument) {
1856
1856
  if (!href) {
1857
1857
  const location = this.buildLocation({ to, ...rest } as any)
1858
- href = location.href
1858
+ href = this.history.createHref(location.href)
1859
1859
  }
1860
1860
  if (rest.replace) {
1861
1861
  window.location.replace(href)