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"> <div class="ui-state">
<p>Unable to load account.</p> <p>Unable to load account.</p>
<p> <p>
<a href={account} target="_blank"> <a
href={isString ? account : url}
target="_blank"
rel="noopener noreferrer"
>
Go to account page <Icon icon="external" /> Go to account page <Icon icon="external" />
</a> </a>
</p> </p>

View file

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

View file

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

View file

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