From 678727c65036ff34e4f510d550e499c7d1c8e224 Mon Sep 17 00:00:00 2001 From: Alex Mickelson Date: Mon, 5 Jan 2026 14:57:32 -0700 Subject: [PATCH] more permissive breadcrumbs --- src/components/BreadCrumbs.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/components/BreadCrumbs.tsx b/src/components/BreadCrumbs.tsx index 566f38e..1933dd6 100644 --- a/src/components/BreadCrumbs.tsx +++ b/src/components/BreadCrumbs.tsx @@ -10,17 +10,15 @@ export const BreadCrumbs = () => { const pathSegments = pathname?.split("/").filter(Boolean) || []; const isCourseRoute = pathSegments[0] === "course"; - const isOnCoursePage = isCourseRoute && pathSegments.length === 2; const courseName = - isCourseRoute && !isOnCoursePage && pathSegments[1] + isCourseRoute && pathSegments[1] ? decodeURIComponent(pathSegments[1]) : null; const isLectureRoute = isCourseRoute && pathSegments[2] === "lecture"; - const isOnLecturePage = isLectureRoute && pathSegments.length === 4; const lectureDate = - isLectureRoute && !isOnLecturePage && pathSegments[3] + isLectureRoute && pathSegments[3] ? decodeURIComponent(pathSegments[3]) : null;