From f6fcbc09df8bc19cf98644aae47a805bdf767c4f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ari=20Perkki=C3=B6?= Date: Wed, 20 Nov 2024 08:39:09 +0200 Subject: [PATCH] fix(astro): add meta tags to redirect page too --- packages/astro/src/default/pages/index.astro | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/astro/src/default/pages/index.astro b/packages/astro/src/default/pages/index.astro index f832ed32..443df896 100644 --- a/packages/astro/src/default/pages/index.astro +++ b/packages/astro/src/default/pages/index.astro @@ -1,4 +1,5 @@ --- +import MetaTags from '../components/MetaTags.astro'; import { getTutorial } from '../utils/content'; import { joinPaths } from '../utils/url'; @@ -9,6 +10,7 @@ const part = lesson.part && tutorial.parts[lesson.part.id]; const chapter = lesson.chapter && part?.chapters[lesson.chapter.id]; const slug = [part?.slug, chapter?.slug, lesson.slug].filter(Boolean).join('/'); +const meta = lesson.data?.meta ?? {}; const redirect = joinPaths(import.meta.env.BASE_URL, `/${slug}`); --- @@ -16,4 +18,5 @@ const redirect = joinPaths(import.meta.env.BASE_URL, `/${slug}`); Redirecting to {redirect} +