noopener noreferrer all the links

This commit is contained in:
Lim Chee Aun 2023-09-26 10:55:36 +08:00
parent cb04659ab1
commit eeb89212d2
4 changed files with 12 additions and 4 deletions

View file

@ -209,7 +209,11 @@ function AccountInfo({
<div class="ui-state">
<p>Unable to load account.</p>
<p>
<a href={account} target="_blank">
<a
href={isString ? account : url}
target="_blank"
rel="noopener noreferrer"
>
Go to account page <Icon icon="external" />
</a>
</p>

View file

@ -1303,7 +1303,7 @@ function Status({
icon={visibilityIconsMap[visibility]}
alt={visibilityText[visibility]}
/>{' '}
<a href={url} target="_blank">
<a href={url} target="_blank" rel="noopener noreferrer">
<time
class="created"
datetime={createdAtDate.toISOString()}

View file

@ -30,7 +30,7 @@ export default function HttpRoute() {
<>
<h2>Unable to process URL</h2>
<p>
<a href={url} target="_blank">
<a href={url} target="_blank" rel="noopener noreferrer">
{url}
</a>
</p>

View file

@ -443,7 +443,11 @@ function Settings({ onClose }) {
@phanpy
</a>
<br />
<a href="https://github.com/cheeaun/phanpy" target="_blank">
<a
href="https://github.com/cheeaun/phanpy"
target="_blank"
rel="noopener noreferrer"
>
Built
</a>{' '}
by{' '}