From 4a22f0cf6f8bd9b4671ae6f26d9eed98953bcb7a Mon Sep 17 00:00:00 2001 From: Mao Nakamoto Date: Sat, 29 Aug 2026 11:28:49 +0000 Subject: [PATCH] fix(nav): hide experimental-site banner when no legacy site is configured MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit ORG.websiteLegacy is empty for evig (no legacy site), but the mobile menu's "Experimentelle Site – zur aktuellen Site" banner rendered unconditionally with a link to an empty href. Gate it on ORG.websiteLegacy so it only shows when a legacy site exists to link to, matching the intent already documented on that config field. Reported by a visitor via the site feedback widget. Co-Authored-By: Claude Sonnet 5 --- src/components/layout/MobileMenu.tsx | 36 +++++++++++++++------------- 1 file changed, 19 insertions(+), 17 deletions(-) diff --git a/src/components/layout/MobileMenu.tsx b/src/components/layout/MobileMenu.tsx index eff021c6f..c9ba7964d 100644 --- a/src/components/layout/MobileMenu.tsx +++ b/src/components/layout/MobileMenu.tsx @@ -92,24 +92,26 @@ export function MobileMenu({ - {/* Experimental Site Banner */} -
-
-
- - {t('experimentalBanner')} – - - {t('experimentalBannerLink')} - - + {/* Experimental Site Banner — only when a legacy site exists to link to */} + {ORG.websiteLegacy && ( +
+
+
+ + {t('experimentalBanner')} – + + {t('experimentalBannerLink')} + + +
-
+ )} {/* Navigation */}