From 81357bab51cec498bc34174bd3c3f223a42dfa01 Mon Sep 17 00:00:00 2001 From: Emily Wangler Date: Sat, 18 Nov 2023 12:45:28 +0100 Subject: [PATCH] fix relative links from calendar tasks --- src/components/Task.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Task.tsx b/src/components/Task.tsx index ddb8fa0..bde0d48 100644 --- a/src/components/Task.tsx +++ b/src/components/Task.tsx @@ -21,7 +21,8 @@ function Task(props: TaskT) { const targets = props.targets.map((target) => target['rolle']).join(', ') const responsible = props.responsible.map((responsible) => props.t(`target.role.${responsible['rolle']}`)).join(', ') const chapters = props.chapters.map(function(chapter) { - return
  • {chapter.title}
  • + const link = `/${chapter.section.slug}#${chapter.slug}` + return
  • {chapter.title}
  • }) return {deadline}