diff options
author | Andy Coupe <andrewmcoupe@gmail.com> | 2020-06-30 14:40:57 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 09:40:57 -0400 |
commit | 587731583f4660dee49c217f69dfc73fe006d6cf (patch) | |
tree | a71bec18254f57160d642144db32685ae35703a8 /ui/src/components/user.tsx | |
parent | c0b11d4fa3d383585aa26df22d5c13e58127b1b8 (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/user.tsx')
-rw-r--r-- | ui/src/components/user.tsx | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/ui/src/components/user.tsx b/ui/src/components/user.tsx index f635a1cd..69914fd3 100644 --- a/ui/src/components/user.tsx +++ b/ui/src/components/user.tsx @@ -317,6 +317,7 @@ export class User extends Component<any, UserState> { SortType[this.state.sort] }`} target="_blank" + rel="noopener" title="RSS" > <svg class="icon mx-2 text-muted small"> @@ -463,6 +464,7 @@ export class User extends Component<any, UserState> { !this.state.user.matrix_user_id && 'disabled' }`} target="_blank" + rel="noopener" href={`https://matrix.to/#/${this.state.user.matrix_user_id}`} > {i18n.t('send_secure_message')} @@ -586,7 +588,11 @@ export class User extends Component<any, UserState> { </div> <div class="form-group row"> <label class="col-lg-5 col-form-label"> - <a href="https://about.riot.im/" target="_blank"> + <a + href="https://about.riot.im/" + target="_blank" + rel="noopener" + > {i18n.t('matrix_user_id')} </a> </label> |