mkdocs-redirects icon indicating copy to clipboard operation
mkdocs-redirects copied to clipboard

Support hash redirects / heading redirects

Open reteps opened this issue 10 months ago • 13 comments

Resolves #69

  • First hash is used if no top-level one found
  • Injects into existing pages if needed

I won't claim this is the cleanest implementation, but it works! I tested it on my own site with these rules:

      redirect_maps:
        index.md#foo: 'concepts/index.md#bam'
        foo.md#bar: 'concepts/index.md#bam'
        foo.md: 'getting-started/index.md'

where foo.md doesn't exist, and index.md does.

reteps avatar Apr 29 '25 20:04 reteps