summaryrefslogtreecommitdiffstats
path: root/ui/src/components/post-listing.tsx
diff options
context:
space:
mode:
authorAndy Coupe <andrewmcoupe@gmail.com>2020-06-30 14:40:57 +0100
committerGitHub <noreply@github.com>2020-06-30 09:40:57 -0400
commit587731583f4660dee49c217f69dfc73fe006d6cf (patch)
treea71bec18254f57160d642144db32685ae35703a8 /ui/src/components/post-listing.tsx
parentc0b11d4fa3d383585aa26df22d5c13e58127b1b8 (diff)
improve lighthouse best practices audit (#863)
* improve safety of cross origin links * add additional safety for cross origin links * remove duplicates
Diffstat (limited to 'ui/src/components/post-listing.tsx')
-rw-r--r--ui/src/components/post-listing.tsx4
1 files changed, 4 insertions, 0 deletions
diff --git a/ui/src/components/post-listing.tsx b/ui/src/components/post-listing.tsx
index b4cc4f92..3d608842 100644
--- a/ui/src/components/post-listing.tsx
+++ b/ui/src/components/post-listing.tsx
@@ -197,6 +197,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
className="text-body"
href={post.url}
target="_blank"
+ rel="noopener"
title={post.url}
>
{this.imgThumb(this.getImage(true))}
@@ -227,6 +228,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
href={post.url}
target="_blank"
title={post.url}
+ rel="noopener"
>
<svg class="icon thumbnail">
<use xlinkHref="#icon-external-link"></use>
@@ -303,6 +305,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
href={post.url}
target="_blank"
title={post.url}
+ rel="noopener"
>
{post.name}
</a>
@@ -323,6 +326,7 @@ export class PostListing extends Component<PostListingProps, PostListingState> {
href={post.url}
target="_blank"
title={post.url}
+ rel="noopener"
>
{hostname(post.url)}
<svg class="ml-1 icon icon-inline">