Skip to content

Commit e4e5e62

Browse files
spezzinopraveenweb
authored andcommitted
add rel noopener for anchor tags with _blank (close hasura#39)
1 parent ea6c3b3 commit e4e5e62

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/mdxComponents/anchor.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as React from "react";
33
const AnchorTag = ({ children: link, ...props }) => {
44
if(link) {
55
return (
6-
<a href={props.href} target="_blank">{link}</a>
6+
<a href={props.href} target="_blank" rel="noopener">{link}</a>
77
);
88
} else {
99
return null;

0 commit comments

Comments
 (0)