fix(routing): resolve 404 on German product pages via rewrites and localized links

This commit is contained in:
2026-02-23 12:36:37 +01:00
parent 97db28aad9
commit 738a6069e2
3 changed files with 25 additions and 15 deletions

View File

@@ -344,6 +344,14 @@ const nextConfig = {
}
return [
{
source: '/de/produkte',
destination: '/de/products',
},
{
source: '/de/produkte/:path*',
destination: '/de/products/:path*',
},
{
source: '/cms/:path*',
destination: `${directusUrl}/:path*`,