REFACTORED - Flatten portfolio category routes to /portfolio/[slug]

Merge the category and project routes under a single /portfolio/[slug]
segment via resolvePortfolioSlug (category wins over project on a slug
clash). Removes the /portfolio/category/... prefix from links, redirect,
and sitemap. Adds resolver integration tests.
This commit is contained in:
moh
2026-09-20 18:53:48 +02:00
parent 5b019052b1
commit 3f96abc60f
9 changed files with 133 additions and 136 deletions
@@ -30,7 +30,7 @@ export function PortfolioCategoryFilter({
{categories.map((category) => (
<CategoryLink
key={category.id}
href={getLocalizedPath(locale, `/portfolio/category/${category.slug}`, defaultLocale)}
href={getLocalizedPath(locale, `/portfolio/${category.slug}`, defaultLocale)}
label={getLocalizedValue(category.name, locale)}
active={activeCategorySlug === category.slug}
/>