fix: also preserve referrer for pulse and pulse-staging domains
This commit is contained in:
@@ -787,13 +787,13 @@ function AuditDescription({ text }: { text: string }) {
|
|||||||
const match = part.match(/^\[([^\]]+)\]\(([^)]+)\)$/)
|
const match = part.match(/^\[([^\]]+)\]\(([^)]+)\)$/)
|
||||||
if (match) {
|
if (match) {
|
||||||
const href = remapLearnUrl(match[2])
|
const href = remapLearnUrl(match[2])
|
||||||
const isCiphera = href.startsWith('https://ciphera.net')
|
const isInternal = href.startsWith('https://ciphera.net') || href.startsWith('https://pulse.ciphera.net') || href.startsWith('https://pulse-staging.ciphera.net')
|
||||||
return (
|
return (
|
||||||
<a
|
<a
|
||||||
key={i}
|
key={i}
|
||||||
href={href}
|
href={href}
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel={isCiphera ? 'noopener' : 'noopener noreferrer'}
|
rel={isInternal ? 'noopener' : 'noopener noreferrer'}
|
||||||
className="text-brand-orange hover:underline"
|
className="text-brand-orange hover:underline"
|
||||||
>
|
>
|
||||||
{match[1]}
|
{match[1]}
|
||||||
|
|||||||
Reference in New Issue
Block a user