From 587731583f4660dee49c217f69dfc73fe006d6cf Mon Sep 17 00:00:00 2001 From: Andy Coupe Date: Tue, 30 Jun 2020 14:40:57 +0100 Subject: improve lighthouse best practices audit (#863) * improve safety of cross origin links * add additional safety for cross origin links * remove duplicates --- ui/src/components/user.tsx | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'ui/src/components/user.tsx') 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 { SortType[this.state.sort] }`} target="_blank" + rel="noopener" title="RSS" > @@ -463,6 +464,7 @@ export class User extends Component { !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 {