Skip to content

Folded sidebar does not work well with nojs #2889

@ehuss

Description

@ehuss

Problem

If javascript is disabled, and the book has folding enabled, then the sidebar navigation works poorly with the collapsed chapters. In essence, if the active page is inside a folded group, it does not appear in the sidebar.

Here, the active page is inside one of the collapsed groups.

Image

Steps

Have a book with folding enabled:

[output.html.fold]
enable = true
level = 0

Load the page without javascript, and try to navigate in the sidebar.

Possible Solution(s)

I'm wondering if the nojs iframe should completely disable folding?

Notes

No response

Version

mdbook v0.4.52 and mdbook v0.5.0-alpha.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-JavaScriptArea: JavascriptA-SummaryArea: The summary page, organization of pages.C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions