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