Skip to content

Link to paragraph on index.md breaks #3015

@odin568

Description

@odin568

I try to link from a subpage to a paragraph on my root index.md:

[MyLink](../index.md#contact)

This results when clicking in a 404 trying to open the following URL:

documentation#contact

Correct would be to link to

documentation/#contact (note the slash)

Just linking to the page itself works fine

[MyLink](../index.md)

documentation/ (slash is in the link)

Anybody has a clue if I do anything wrong or if this is a bug?

I use mkdocs with Materials template. Can provide more if required.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions