@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/dist/esm/router.js
CHANGED
|
@@ -234,7 +234,7 @@ class RouterCore {
|
|
|
234
234
|
_buildLocation: true
|
|
235
235
|
});
|
|
236
236
|
const lastMatch = last(allCurrentLocationMatches);
|
|
237
|
-
let fromPath = lastMatch.fullPath;
|
|
237
|
+
let fromPath = this.resolvePathWithBase(lastMatch.fullPath, ".");
|
|
238
238
|
const toPath = dest.to ? this.resolvePathWithBase(fromPath, `${dest.to}`) : this.resolvePathWithBase(fromPath, ".");
|
|
239
239
|
const routeIsChanging = !!dest.to && !comparePaths(dest.to.toString(), fromPath) && !comparePaths(toPath, fromPath);
|
|
240
240
|
if (dest.unsafeRelative === "path") {
|
|
@@ -257,6 +257,7 @@ class RouterCore {
|
|
|
257
257
|
}
|
|
258
258
|
}
|
|
259
259
|
}
|
|
260
|
+
fromPath = this.resolvePathWithBase(fromPath, ".");
|
|
260
261
|
const fromSearch = lastMatch.search;
|
|
261
262
|
const fromParams = { ...lastMatch.params };
|
|
262
263
|
const nextTo = dest.to ? this.resolvePathWithBase(fromPath, `${dest.to}`) : this.resolvePathWithBase(fromPath, ".");
|