Skip to content

Commit

Permalink
Add rel='noreferrer' when adding target='_blank'
Browse files Browse the repository at this point in the history
  • Loading branch information
garronej committed Sep 8, 2023
1 parent 3f3dbb2 commit 467aaa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ export function setLink(params: { Link: typeof Link }): void {
break external_links;
}

return <a href={target} target="_blank" {...rest} />;
return <a href={target} target="_blank" rel="noreferrer" {...rest} />;
}

anchor: {
Expand Down

0 comments on commit 467aaa8

Please sign in to comment.