Skip to content

Commit

Permalink
fix: Remove target for mailto links (#652)
Browse files Browse the repository at this point in the history
Closes #625
  • Loading branch information
cheng-kang authored and QingWei-Li committed Oct 23, 2018
1 parent f6f4e32 commit 18f0f03
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 18f0f03

Please sign in to comment.