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(/^\[([^\]]+)\]\(([^)]+)\)$/) 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]}