Skip to content

Chapter Navigation Menu Always Expands Chapter 1 #2348

@ymhcanada

Description

@ymhcanada

Issue Statement:
The right-side course navigation menu incorrectly auto-expands Chapter 1 on every page load, regardless of the user’s current position, resulting in multiple chapters being expanded simultaneously and inconsistent navigation behavior.

Issue Detailed Description:
The right-side navigation menu does not properly manage or persist the expanded state of chapters based on user context.

Actual behavior observed:

  • When a user is in a later chapter (e.g., Chapter 4), the correct chapter is expanded in the menu.
  • However, Chapter 1 is also always expanded by default, regardless of where the user is in the course.
  • This results in multiple chapters (Chapter 1 + current chapter) being expanded at the same time.

This occurs consistently across:

  • Page refresh
  • Clicking “Next” between lessons
  • Navigating between chapters (e.g., moving to Chapter 5)

As a result:

  • The navigation menu becomes cluttered and less intuitive.
  • Chapter 1 is persistently forced open, even when irrelevant to the user’s current location.
  • The UI does not accurately reflect a clean, context-aware navigation state.

Steps to Replicate the Issue:

  1. Open a course in Frappe LMS.
  2. Navigate to a lesson in a later chapter (e.g., Chapter 4).
  3. Observe the right-side menu:
    • Chapter 4 is expanded (expected)
    • Chapter 1 is also expanded (unexpected)
  4. Refresh the page.
  5. Observe that:
    • You remain on Chapter 4 content
    • Both Chapter 1 and Chapter 4 are expanded
  6. Click “Next” to navigate to another lesson or chapter (e.g., Chapter 5).
  7. Observe that:
    • Chapter 5 expands
    • Chapter 1 remains expanded
  8. Repeat and confirm Chapter 1 is always expanded regardless of location.

Desktop (please complete the following information):

  • Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/147.0.0.0 Safari/537.36

Server:
Frappe Cloud, hosted by Frappe, Falkenstein, Germany

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions