From 885b8a85c2accfca3fcbee67c5940e044f3fb6c0 Mon Sep 17 00:00:00 2001 From: zmeyer44 Date: Tue, 7 Nov 2023 11:31:29 -0500 Subject: [PATCH] fixing redirects --- app/(app)/article/[key]/layout.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/app/(app)/article/[key]/layout.tsx b/app/(app)/article/[key]/layout.tsx index 80ce656..9343014 100644 --- a/app/(app)/article/[key]/layout.tsx +++ b/app/(app)/article/[key]/layout.tsx @@ -27,6 +27,10 @@ export default function ModalLayout(props: { {props[30311]} ); + } else if (kind === 31923 || kind === 31922) { + return redirect(`/event/${key}`); + } else if (kind === 31924) { + return redirect(`/calendar/${key}`); } } else if (type === "note") { return (