Skip to content

Commit

Permalink
Remove target for mailto links
Browse files Browse the repository at this point in the history
  • Loading branch information
Kang Cheng committed Oct 19, 2018
1 parent 1897bb6 commit 7b46219
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/render/compiler.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ export class Compiler {
}
href = router.toURL(href, null, router.getCurrentPath())
} else {
attrs += ` target="${linkTarget}"`
attrs += href.startsWith('mailto:') ? '' : ` target="${linkTarget}"`
}

if (config.target) {
Expand Down

0 comments on commit 7b46219

Please sign in to comment.