From e6701218d281d8b1b4114ee637fc92e0b92046c4 Mon Sep 17 00:00:00 2001 From: Vasile Chindris Date: Mon, 13 Jan 2025 11:07:56 +0200 Subject: [PATCH] chore(SLB-497): set the type attribute on image_src head links --- apps/website/src/templates/home.tsx | 3 +++ apps/website/src/templates/page.tsx | 3 +++ 2 files changed, 6 insertions(+) diff --git a/apps/website/src/templates/home.tsx b/apps/website/src/templates/home.tsx index 8c149c00a..9b8ac0e25 100644 --- a/apps/website/src/templates/home.tsx +++ b/apps/website/src/templates/home.tsx @@ -28,6 +28,9 @@ export function Head({ data }: HeadProps) { key={`link-${index}`} rel={metaTag.attributes?.rel} href={metaTag.attributes?.href} + type={ + metaTag.attributes?.rel === 'image_src' ? 'image' : undefined + } /> ); } diff --git a/apps/website/src/templates/page.tsx b/apps/website/src/templates/page.tsx index 63510fcdb..4ebb17a08 100644 --- a/apps/website/src/templates/page.tsx +++ b/apps/website/src/templates/page.tsx @@ -30,6 +30,9 @@ export function Head({ data }: HeadProps) { key={`link-${index}`} rel={metaTag.attributes?.rel} href={metaTag.attributes?.href} + type={ + metaTag.attributes?.rel === 'image_src' ? 'image' : undefined + } /> ); }