Skip to content

Commit 18f0f03

Browse files
cheng-kangQingWei-Li
authored andcommitted
fix: Remove target for mailto links (#652)
Closes #625
1 parent f6f4e32 commit 18f0f03

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/render/compiler.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ export class Compiler {
213213
}
214214
href = router.toURL(href, null, router.getCurrentPath())
215215
} else {
216-
attrs += ` target="${linkTarget}"`
216+
attrs += href.startsWith('mailto:') ? '' : ` target="${linkTarget}"`
217217
}
218218

219219
if (config.target) {

0 commit comments

Comments
 (0)