Skip to content

Navigating to sub-header reverts the URL to main header #15

@erhant

Description

@erhant

For example, if you go to https://docs.huff.sh/get-started/huff-by-example/#constructor-and-main it scrolls to the header correctly, and right after that the URL goes back to https://docs.huff.sh/get-started/huff-by-example/#macros which is the parent header that the previous header is child of.

Similarly, if you click to any sub-header (such as Macro Arguments header just below the in the previous link) the url first switches to https://docs.huff.sh/get-started/huff-by-example/#macro-arguments and then goes back to https://docs.huff.sh/get-started/huff-by-example/#macros.

After this URL change happens, if you click on that same sub-header, the URL does not change anymore and works as intended.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions