frontend-app-learning icon indicating copy to clipboard operation
frontend-app-learning copied to clipboard

Left sidebar navigation breaks rendering of course

Open KristinAoki opened this issue 6 months ago • 1 comments

On the edX production site, the enabling of the left sidebar navigation prevents the page from rendering. When looking at the Network tab in Dev tools, the navigation API, /api/course_home/v1/navigation/undefined returns 404 because the course id is undefined. It should be noted that this does not occur on all the edX environments.

Screen recording of the behavior:

Screenshot of console errors Screenshot 2024-08-14 at 1 29 45 PM

The error points to the useEffect in src/courseware/course/sidebar/sidebars/course-outline/hooks.jsx

Reproduction steps

  1. Enable courseware.enable_navigation_sidebar waffle flag
  2. Open a course
  3. See the spinner for loading the course content
  4. Shown unexpected error occurred message

KristinAoki avatar Aug 14 '24 17:08 KristinAoki