@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/dist/cjs/router.cjs +2 -1
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +2 -1
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +3 -1
package/package.json
CHANGED
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
|