Skip to content

Commit 77328a8

Browse files
feat: add noopener rel for external links if not otherwise specified
1 parent f791111 commit 77328a8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ const vueLinkFactory = slashes => ({
4949
...data,
5050
attrs: {
5151
href: data.props.to || undefined,
52-
rel: data.props.rel || undefined,
52+
rel: data.props.rel || 'noopener',
5353
target: data.props.target || (data.props.newTab ? '_blank' : undefined)
5454
}
5555
}, children)

0 commit comments

Comments
 (0)