fix: also preserve referrer for pulse and pulse-staging domains

This commit is contained in:
Usman Baig
2026-03-27 18:24:15 +01:00
parent 80ee2fb614
commit c2b448672c

View File

@@ -787,13 +787,13 @@ function AuditDescription({ text }: { text: string }) {
const match = part.match(/^\[([^\]]+)\]\(([^)]+)\)$/)
if (match) {
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 (
<a
key={i}
href={href}
target="_blank"
rel={isCiphera ? 'noopener' : 'noopener noreferrer'}
rel={isInternal ? 'noopener' : 'noopener noreferrer'}
className="text-brand-orange hover:underline"
>
{match[1]}