From dc5489706de6766e2fa41377a280f6991d174cf0 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Mon, 22 Jun 2026 13:05:33 +0200 Subject: [PATCH] fix(og): Add missing title and description variables --- app/[locale]/opengraph-image.tsx | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/[locale]/opengraph-image.tsx b/app/[locale]/opengraph-image.tsx index 94fea49e8..790136f76 100644 --- a/app/[locale]/opengraph-image.tsx +++ b/app/[locale]/opengraph-image.tsx @@ -10,6 +10,16 @@ export const runtime = 'nodejs'; export default async function Image({ params }: { params: Promise<{ locale: string }> }) { const { locale } = await params; const t = await getTranslations({ locale, namespace: 'Index.meta' }); + + let title = t('title'); + if (title.startsWith('E-TIB GmbH | ')) { + title = title.substring('E-TIB GmbH | '.length); + } + let description = t('description'); + if (description.length > 160) { + description = description.substring(0, 160) + '...'; + } + const fonts = await getOgFonts(); const bg = getOgBackground(); const logo = getOgLogo();