Skip to content

Commit 0155b7a

Browse files
committed
add rel="noreferrer" for security reason
1 parent 0413c21 commit 0155b7a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/Book/Book.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ const Book = ({
2929
/>
3030
</BookLink>
3131
<div>
32-
<a href="/#" target="_blank" className="book-link" data-testid="title-book">
32+
<a href="/#" target="_blank" rel="noreferrer" className="book-link" data-testid="title-book">
3333
{book.title}
3434
</a>
3535
<p className="book-authors">by {book.author}</p>

src/components/Book/BookLink.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const BookLink = (props: any) => {
55
return (
66
<>
77
{props.bookLink.length !== 0 ? (
8-
<a href={props.bookLink[0].url} target="_blank" className="book-link">
8+
<a href={props.bookLink[0].url} target="_blank" rel="noreferrer" className="book-link">
99
{props.children}
1010
</a>
1111
) : (

0 commit comments

Comments
 (0)