We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6e45024 commit 33ec97aCopy full SHA for 33ec97a
src/core/render/compiler/link.js
@@ -34,9 +34,8 @@ export const linkCompiler = ({
34
href.indexOf('mailto:') !== 0 && attrs.push(`target="${linkTarget}"`);
35
}
36
} else {
37
- if (!isAbsolutePath(href) && href.slice(0, 2) === './') {
38
- href =
39
- document.URL.replace(/\/(?!.*\/).*/, '/').replace('#/./', '') + href;
+ if (!isAbsolutePath(href) && href.startsWith('./')) {
+ href = router.toURL(href, null, router.getCurrentPath()).replace(/^#\//, '/');
40
41
attrs.push(href.indexOf('mailto:') === 0 ? '' : `target="${linkTarget}"`);
42
attrs.push(
0 commit comments