Skip to content

sidebar no longer scrolling to current chapter #3081

@jonathanpallant

Description

@jonathanpallant

Problem

We host an mdbook at https://rust-exercises.ferrous-systems.com/latest/book (https://github.com/ferrous-systems/rust-exercises). We also keep old copies of the book.

Back on https://rust-exercises.ferrous-systems.com/v1.27.0/book/, selecting a new chapter on the sidebar kept the sidebar scrolled to where it was. This is very useful when quickly moving through chapters.

As of https://rust-exercises.ferrous-systems.com/v1.28.0/book/, selecting a new chapter in the sidebar causes the sidebar to reset back to the top of the list, making it really difficult to move through the chapters.

This was when we changed from mdbook 0.4 to mdbook 0.5.2.

Is this expected behaviour? How can I get the old behaviour back?

I see this in Safari 26.4, Firefox 150 and Chrome 147, all on macOS.

Steps

No response

Possible Solution(s)

No response

Notes

No response

Version


Metadata

Metadata

Assignees

No one assigned

    Labels

    C-bugCategory: A bug, incorrect or unintended behavior

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions