@tanstack/router-core 1.143.4 → 1.143.6
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 -6
- package/dist/cjs/router.cjs.map +1 -1
- package/dist/esm/router.js +2 -6
- package/dist/esm/router.js.map +1 -1
- package/package.json +1 -1
- package/src/router.ts +2 -24
package/dist/cjs/router.cjs
CHANGED
|
@@ -208,15 +208,11 @@ class RouterCore {
|
|
|
208
208
|
const searchStr = this.options.stringifySearch(parsedSearch);
|
|
209
209
|
url.search = searchStr;
|
|
210
210
|
const fullPath = url.href.replace(url.origin, "");
|
|
211
|
-
const internalPathname = url.pathname;
|
|
212
|
-
const urlForOutput = new URL(url.href);
|
|
213
|
-
const rewrittenUrl = rewrite.executeRewriteOutput(this.rewrite, urlForOutput);
|
|
214
|
-
const publicHref = rewrittenUrl.pathname + rewrittenUrl.search + rewrittenUrl.hash;
|
|
215
211
|
return {
|
|
216
212
|
href: fullPath,
|
|
217
|
-
publicHref,
|
|
213
|
+
publicHref: href,
|
|
218
214
|
url,
|
|
219
|
-
pathname: utils.decodePath(
|
|
215
|
+
pathname: utils.decodePath(url.pathname),
|
|
220
216
|
searchStr,
|
|
221
217
|
search: utils.replaceEqualDeep(previousLocation?.search, parsedSearch),
|
|
222
218
|
hash: url.hash.split("#").reverse()[0] ?? "",
|