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 2f5eb97 commit 5373ecaCopy full SHA for 5373eca
src/core/render/compiler/link.js
@@ -30,9 +30,7 @@ export const linkCompiler = ({
30
href = router.toURL(href, null, router.getCurrentPath());
31
32
if (config.target) {
33
- attrs.push(
34
- href.indexOf('mailto:') === 0 ? '' : `target="${linkTarget}"`
35
- );
+ href.indexOf('mailto:') !== 0 && attrs.push(`target="${linkTarget}"`);
36
}
37
} else {
38
if (!isAbsolutePath(href) && href.slice(0, 2) === './') {
0 commit comments