Skip to content

[ BUG ] Heading IDs are generated wrong, broken navigation #436

@peterjeschke

Description

@peterjeschke

Browser on which this bug occurs

Mozilla Firefox

Expected Behavior

Actual Behavior

On at least one of the two pages (essentially random, decided during build-time), the navigation won't work. On both pages, the navigation links to #security, but the IDs are generated as #security and #security-2 (or similar).

Extra Details

This is because the headings have a slightly broken ID generation for de-duplication. In case of "security", the entire website has three headings. To prevent collision, the pages are generated with globally unique IDs ("security", "security-2", "security-3"). The navigation component tries the same, but only local to the page.

The ID generation for the headings should happen locally to the page as well.

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