Skip to content

Highlight active sidebar item when child page is loaded #2257

@phazonoverload

Description

@phazonoverload

Is your feature request related to a problem? Please describe.

Not every page in my docs should be in the sidebar. For example having a top-level page "Learn to do X" and that page pointing to variants with different technologies.

If the sidebar has /guide and I visit /guide, then the sidebar item for the route is highlighted with an active state. If I visit /guide/subpage, it does not.

This makes it hard for users to know where they are on a website, and does not auto-expand the section they are in.

Describe the solution you'd like

Either behavior that child pages make the parent page active in the sidebar, or provided as an option.

Describe alternatives you've considered

No response

Additional context

No response

Validations

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions