feat: preparing evaluation
This commit is contained in:
1 parent
fedab30e35
commit
c8a66d8471
1 file changed
+20
@@ -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 (
|
||||||
|
<p>iCal-Adresse: {icalUrl}</p>
|
||||||
|
);
|
||||||
|
}
|
||||||
Reference in new issue
Block a user