From c8a66d847111317265ae6b14dafdbbd6a44bf6af Mon Sep 17 00:00:00 2001 From: Robin Schanbacher Date: Mon, 3 Aug 2026 12:21:11 +0200 Subject: [PATCH] feat: preparing evaluation --- app/evaluation/[...ical-link]/page.tsx | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 app/evaluation/[...ical-link]/page.tsx diff --git a/app/evaluation/[...ical-link]/page.tsx b/app/evaluation/[...ical-link]/page.tsx new file mode 100644 index 0000000..3ade0a3 --- /dev/null +++ b/app/evaluation/[...ical-link]/page.tsx @@ -0,0 +1,20 @@ +interface PageProps { + params: Promise<{ + 'ical-link': string[]; + }>; +} + +export default async function EvaluationPage({ params }: PageProps) { + const resolvedParams = await params; + const pathSegments = resolvedParams['ical-link']; + + let rawUrl = pathSegments.join('/'); + + rawUrl = decodeURIComponent(rawUrl); + + const icalUrl = rawUrl.replace(/^(https?):\/+/, '$1://'); + + return ( +

iCal-Adresse: {icalUrl}

+ ); +} \ No newline at end of file