diff --git a/src/app/[...slug]/page.tsx b/src/app/[...slug]/page.tsx index e281414e0..e6ce882fa 100644 --- a/src/app/[...slug]/page.tsx +++ b/src/app/[...slug]/page.tsx @@ -31,7 +31,9 @@ export async function generateStaticParams() { type ContentType = 'product' | 'portfolio'; function findContentBySlug(slug: string[]): { type: ContentType; data: typeof productCategories[0] | typeof portfolioProjects[0] } | null { - const fullPath = '/' + slug.join('/') + '/'; + // Decode URL-encoded slug parts + const decodedSlug = slug.map(part => decodeURIComponent(part)); + const fullPath = '/' + decodedSlug.join('/') + '/'; // Check products first const product = productCategories.find((p) => p.href === fullPath);