Skip to content

Anchors broken for home page #29

Description

@thewoolleyman

From some applications (e.g. Gmail and Slack OSX Desktop app), anchors on the home page are broken.

This is because they turn two consecutive hashes (##) into the second one url-escaped (#%23).

E.g., if you paste this into slack app or send in gmail, then click it:

https://mysite.com/##header

You get sent to this page (which obviously 404s):

https://mysite.com/#%23header

This only happens on the root page (which is the only one with consecutive hashes in the URL), so one solution would be to use mysite/#/ (with a trailing slash) as the root, instead of just mysite/#. However, this seems to work on real sites (served via nginx), but not when served locally via mkdocs serve.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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