Link to brokers/breached sites in a new tab

(We already displayed the "Opens in a new tab" icon, but did not
actually open the links in a new tab :P)
This commit is contained in:
Vincent 2023-10-13 17:31:40 +02:00 коммит произвёл Vincent
Родитель 0418dd6d14
Коммит 4b09874ead
1 изменённых файлов: 8 добавлений и 3 удалений

Просмотреть файл

@ -213,11 +213,13 @@ const ScanResultCard = (props: ScanResultCardProps) => {
"exposure-card-description-info-for-sale-part-one",
{
elems: {
data_broker_link: <a href={scanResult.link} />,
data_broker_link: (
<a href={scanResult.link} target="_blank" />
),
},
},
)}
<a href={scanResult.link}>
<a href={scanResult.link} target="_blank">
<span className={styles.openInNewTab}>
<OpenInNew
alt={l10n.getString("open-in-new-tab-alt")}
@ -429,7 +431,10 @@ const SubscriberBreachCard = (props: SubscriberBreachCardProps) => {
},
},
)}
<a href={`/breach-details/${subscriberBreach.name}`}>
<a
href={`/breach-details/${subscriberBreach.name}`}
target="_blank"
>
<span className={styles.openInNewTab}>
<OpenInNew
alt={l10n.getString("open-in-new-tab-alt")}