Skip to content

Commit

Permalink
fix: opens external anchor using rel=noopener
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Aug 24, 2017
1 parent 6c0fbd0 commit 98b8102
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/plugins/helper/link_to.js
Expand Up @@ -23,7 +23,7 @@ function linkToHelper(path, text, options) {

if (attrs.external) {
attrs.target = '_blank';
attrs.rel = 'external';
attrs.rel = 'noopener';
attrs.external = null;
}

Expand Down

0 comments on commit 98b8102

Please sign in to comment.