From 64d4edc1752029dd68b1e2f11fe359340e750017 Mon Sep 17 00:00:00 2001 From: Marc Mintel Date: Tue, 26 May 2026 15:00:51 +0200 Subject: [PATCH] fix(map): enrich and render minorLocations alongside defaultLocations on dynamic slug pages to establish 100% map parity with referenzen overview --- app/[locale]/[slug]/page.tsx | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/app/[locale]/[slug]/page.tsx b/app/[locale]/[slug]/page.tsx index 66d542117..4294b97ae 100644 --- a/app/[locale]/[slug]/page.tsx +++ b/app/[locale]/[slug]/page.tsx @@ -9,7 +9,7 @@ import { SITE_URL } from '@/lib/schema'; import TrackedLink from '@/components/analytics/TrackedLink'; import { getButtonClasses, ButtonOverlay } from '@/components/ui/Button'; import { getAllReferences } from '@/lib/references'; -import { defaultLocations } from '@/lib/map-data'; +import { defaultLocations, minorLocations } from '@/lib/map-data'; // Import components used in MDX import { HeroVideo as HomeHero } from '@/components/blocks/HeroVideo'; @@ -153,7 +153,8 @@ export default async function Page(props: { params: Promise<{ locale: string; sl // Fetch references to enrich the map if it's used const references = await getAllReferences(locale); - const enrichedLocations = defaultLocations.map(loc => { + const allLocations = [...defaultLocations, ...minorLocations]; + const enrichedLocations = allLocations.map(loc => { if (loc.type === 'project') { const ref = references.find(r => r.slug === loc.id); if (ref) {