-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
fix: update relative link handling #2579
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
any change on this...? I thought it is a refactor. 🔨
href = router | ||
.toURL(href, null, router.getCurrentPath()) | ||
.replace(/^#\//, '/'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fix this here by calling toURL to handle relative paths according to routerMode.
Close #1929
Close #2300
Close #1987
Convert the link to an absolute path.