From 01ebc283f2ac1c7e8f46cf2a34c973d1c80f4739 Mon Sep 17 00:00:00 2001 From: Dorian Koch <doriank@fsmpi.rwth-aachen.de> Date: Sat, 12 Oct 2024 22:16:13 +0200 Subject: [PATCH] Fix chapter link in search results, closes #62 --- src/components/CourseListing.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/CourseListing.tsx b/src/components/CourseListing.tsx index da3fef9..2518ed6 100644 --- a/src/components/CourseListing.tsx +++ b/src/components/CourseListing.tsx @@ -230,7 +230,10 @@ export function LectureListItem({ > <span className="bi bi-play" /> <Link - href={`/${course_id_string}/${lecture.id}?t=` + chapter.start_time} + href={ + `/${course_id_string ?? lecture.course_id}/${lecture.id}?t=` + + chapter.start_time + } > {chapter.name} </Link> -- GitLab