Skip to content

TOC highlighting breaks on prettified URLs #3034

@bens-schreiber

Description

@bens-schreiber

Problem

Some static website hosting services (like Cloudflare Pages) reroute URLs to "pretty URLs", removing things like the .html suffix.

See https://cloesce.pages.dev/ for an example of the TOC highlighting failing (works only on the index page)

Steps

Host an mdBook website on a service that defaults to pretty URLs

Metadata

Metadata

Assignees

No one assigned

    Labels

    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