Skip to content
This repository was archived by the owner on May 6, 2022. It is now read-only.

Commit 27e17b0

Browse files
alanmynahGooBall
authored andcommitted
fix(Link): Add rel noopener noreferrer (#174)
1 parent 0a3e392 commit 27e17b0

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/text/Link.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ const Link = (props: LinkProps) => {
3939
href={props.href}
4040
onClick={props.onClick}
4141
target={props.external !== undefined ? '_blank' : '_self'}
42+
rel={props.external !== undefined ? 'noopener noreferrer' : ''}
4243
>
4344
{props.children}
4445
{props.external !== undefined ? <IconExternalLink /> : null}

0 commit comments

Comments
 (0)