frontend-app-learning
frontend-app-learning copied to clipboard
Left sidebar navigation breaks rendering of course
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
The error points to the useEffect in src/courseware/course/sidebar/sidebars/course-outline/hooks.jsx
Reproduction steps
- Enable
courseware.enable_navigation_sidebarwaffle flag - Open a course
- See the spinner for loading the course content
- Shown unexpected error occurred message
@KristinAoki could you please add steps to reproduce.