Skip to content

Commit 23be5f9

Browse files
committed
fix(router-core): ensure href proterty uses rewritten URL in buildLocation
Signed-off-by: leesb971204 <leesb971204@gmail.com>
1 parent c2f732d commit 23be5f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/router-core/src/router.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1682,7 +1682,7 @@ export class RouterCore<
16821682
return {
16831683
publicHref:
16841684
rewrittenUrl.pathname + rewrittenUrl.search + rewrittenUrl.hash,
1685-
href: fullPath,
1685+
href: rewrittenUrl.href.replace(rewrittenUrl.origin, ''),
16861686
url: rewrittenUrl.href,
16871687
pathname: nextPathname,
16881688
search: nextSearch,

0 commit comments

Comments
 (0)