8000 Local fragment links are generated incorrectly · Issue #197 · mkdocs/mkdocs · GitHub
[go: up one dir, main page]

Skip to content

Local fragment links are generated incorrectly #197

@jacobian

Description

@jacobian

I've got a document, foo.md, like this:

# Header One

This is a link to [section 2](#header-two)

# Header Two

And this is that section.

I'd expect the link to go to /foo/#header-two, but instead it's linking to /#header-two. I can work around it by making the link be [section 2](foo.md#header-two), but that's (a) clunky and (b) breaks if I rename the file.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0