New: Add rel="noreferrer" to all external links

* New: Add rel="noreferrer" to all external links

(cherry picked from commit c722e9112496062313d09df16b169873f910f2a1)

* Update Link.js

Co-authored-by: Mark McDowall <mark@mcdowall.ca>
Co-authored-by: Qstick <qstick@gmail.com>
This commit is contained in:
servarr[bot] 2021-05-10 23:47:42 -04:00 committed by GitHub
parent 103a3a9e06
commit 5cca953d42
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -43,6 +43,7 @@ class Link extends Component {
el = 'a';
linkProps.href = to;
linkProps.target = target || '_blank';
linkProps.rel = 'noreferrer';
} else if (noRouter) {
el = 'a';
linkProps.href = to;