The course layout treated `path` as a SvelteKit prop, but parents never pass it. CourseMobileBottomNav then called isContentItemInPath with undefined, which crashed on `.split()` and prevented the mobile sidebar from opening. Use page.url.pathname and guard missing paths.