fix: add /de/kontakt rewrite, fix CTA button overflow & use translated contact slug
Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 8s
Build & Deploy / 🧪 QA (push) Successful in 2m24s
Build & Deploy / 🏗️ Build (push) Successful in 5m57s
Build & Deploy / 🚀 Deploy (push) Successful in 36s
Build & Deploy / 🧪 Post-Deploy Verification (push) Successful in 1m40s
Build & Deploy / ⚡ Performance & Accessibility (push) Failing after 4m46s
Build & Deploy / 🔔 Notify (push) Successful in 2s

This commit is contained in:
2026-02-25 01:30:22 +01:00
parent b0f088a1dc
commit 2ba67af68a
2 changed files with 7 additions and 2 deletions

View File

@@ -59,6 +59,7 @@ export default async function ProductsPage({ params }: ProductsPageProps) {
const solarSlug = await mapFileSlugToTranslated('solar-cables', locale);
const productsSlug = await mapFileSlugToTranslated('products', locale);
const contactSlug = await mapFileSlugToTranslated('contact', locale);
const categories = [
{
@@ -230,10 +231,10 @@ export default async function ProductsPage({ params }: ProductsPageProps) {
</p>
</div>
<Button
href={`/${locale}/contact`}
href={`/${locale}/${contactSlug}`}
variant="accent"
size="lg"
className="group whitespace-nowrap w-full md:w-auto md:h-16 md:px-10 md:text-xl"
className="group whitespace-nowrap w-full md:w-auto md:h-16 px-6 md:px-10 text-sm md:text-xl"
>
{t('cta.button')}
<span className="ml-2 md:ml-4 transition-transform group-hover:translate-x-2">

View File

@@ -424,6 +424,10 @@ const nextConfig = {
source: '/de/produkte/:path*',
destination: '/de/products/:path*',
},
{
source: '/de/kontakt',
destination: '/de/contact',
},
];
},
};