File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed
Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,13 @@ export default async function QuickView({
4545 return text ;
4646 } ;
4747
48+ const checkNormVetLink = ( relativeLink : string , slug : string ) => {
49+ if ( slug == "norm-vet" )
50+ return "https://connect.posit.vetinst.no/normvet_utforsker/" ;
51+
52+ return `${ relativeLink } /${ slug } ` ;
53+ } ;
54+
4855 return (
4956 < div className = "p-6" >
5057 < div className = "mb-6 flex items-center justify-between" >
@@ -57,7 +64,7 @@ export default async function QuickView({
5764 key = { item . pageId }
5865 className = "pl-2 md:basis-1/2 md:pl-4 lg:basis-1/3"
5966 >
60- < Link href = { ` ${ item . relativeLink } / ${ item . slug } ` } >
67+ < Link href = { checkNormVetLink ( item . relativeLink , item . slug ) } >
6168 < Card className = "h-full transition-all duration-300 ease-in-out hover:-translate-y-1 hover:shadow-lg" >
6269 < CardHeader >
6370 < CardTitle className = "text-left text-lg" >
You can’t perform that action at this time.
0 commit comments