Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Anchors broken for home page #29

Open
thewoolleyman opened this issue Jul 27, 2018 · 1 comment
Open

Anchors broken for home page #29

thewoolleyman opened this issue Jul 27, 2018 · 1 comment

Comments

@thewoolleyman
Copy link
Contributor

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.

@dsagal
Copy link
Member

dsagal commented Jul 27, 2018

Actually it looks like gmail escapes all hash # characters after the first one, even when they are not consecutive.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants