@tanstack/router-core 1.131.5 → 1.131.7

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/router-core",
3
- "version": "1.131.5",
3
+ "version": "1.131.7",
4
4
  "description": "Modern and scalable routing for React applications",
5
5
  "author": "Tanner Linsley",
6
6
  "license": "MIT",
package/src/router.ts CHANGED
@@ -1420,7 +1420,7 @@ export class RouterCore<
1420
1420
 
1421
1421
  // First let's find the starting pathname
1422
1422
  // By default, start with the current location
1423
- let fromPath = lastMatch.fullPath
1423
+ let fromPath = this.resolvePathWithBase(lastMatch.fullPath, '.')
1424
1424
  const toPath = dest.to
1425
1425
  ? this.resolvePathWithBase(fromPath, `${dest.to}`)
1426
1426
  : this.resolvePathWithBase(fromPath, '.')
@@ -1461,6 +1461,8 @@ export class RouterCore<
1461
1461
  }
1462
1462
  }
1463
1463
 
1464
+ fromPath = this.resolvePathWithBase(fromPath, '.')
1465
+
1464
1466
  // From search should always use the current location
1465
1467
  const fromSearch = lastMatch.search
1466
1468
  // Same with params. It can't hurt to provide as many as possible