Skip to content

Commit

Permalink
Merge pull request #5737 from chakra-ui/fix/remove-no-referrer
Browse files Browse the repository at this point in the history
fix: remove no referrer
  • Loading branch information
segunadebayo committed Mar 14, 2022
2 parents 1976d65 + e93b9f8 commit 8c72cbe
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/loud-crews-help.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@chakra-ui/layout": patch
---

Remove `noreferrer` attribute from link component
2 changes: 1 addition & 1 deletion packages/layout/src/link.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const Link = forwardRef<LinkProps, "a">((props, ref) => {
return (
<chakra.a
target={isExternal ? "_blank" : undefined}
rel={isExternal ? "noopener noreferrer" : undefined}
rel={isExternal ? "noopener" : undefined}
ref={ref}
className={cx("chakra-link", className)}
{...rest}
Expand Down

0 comments on commit 8c72cbe

Please sign in to comment.