feat: remap PageSpeed audit links to ciphera.net/learn articles

This commit is contained in:
Usman Baig
2026-03-27 17:44:40 +01:00
parent 324ba131d4
commit 773e91d490
2 changed files with 32 additions and 1 deletions

View File

@@ -8,6 +8,7 @@ import { updatePageSpeedConfig, triggerPageSpeedCheck, getPageSpeedLatest, getPa
import { toast, Button } from '@ciphera-net/ui'
import { motion } from 'framer-motion'
import ScoreGauge from '@/components/pagespeed/ScoreGauge'
import { remapLearnUrl } from '@/lib/learn-links'
import { AreaChart as VisxAreaChart, Area as VisxArea, Grid as VisxGrid, XAxis as VisxXAxis, YAxis as VisxYAxis, ChartTooltip as VisxChartTooltip } from '@/components/ui/area-chart'
import { useMinimumLoading, useSkeletonFade } from '@/components/skeletons'
@@ -788,7 +789,7 @@ function AuditDescription({ text }: { text: string }) {
return (
<a
key={i}
href={match[2]}
href={remapLearnUrl(match[2])}
target="_blank"
rel="noopener noreferrer"
className="text-brand-orange hover:underline"