From f869a81ff156b6aadff02d5acd1cda827d5e8bbb Mon Sep 17 00:00:00 2001 From: Fabrice Lamant Date: Sat, 6 Dec 2025 21:04:51 +0100 Subject: [PATCH] fix: set lowercase sport & noc in calendar link --- ui/app/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ui/app/page.tsx b/ui/app/page.tsx index 7ccdc1429..4d28736f7 100644 --- a/ui/app/page.tsx +++ b/ui/app/page.tsx @@ -91,8 +91,8 @@ export default function Home() { const generateCalendarLink = () => { const host = typeof window !== 'undefined' ? window.location.host : ''; - const noc = qs.get('noc') || 'calendar'; - const sport = qs.get('sport') || 'all-sports'; + const noc = (qs.get('noc') || 'calendar').toLowerCase(); + const sport = (qs.get('sport') || 'all-sports').toLowerCase(); return `http://${host}/api/data/${language}/${sport}/${noc}.ics`; };