-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Enabling the navigation.instant feature breaks links to anchors on Safari #2881
Comments
Thanks for reporting. I've looked into it and think I may have found the cause:
Interestingly, the combination of 1. and 2. seems to have led to the strange behavior in Safari, not in Chrome. adafd84 is an attempt to fix this:
This means that anchors are finally working with instant loading, even in search results. In regard to search results, this was something I had on my list for a long time and it seems that this is now finally fixed. I hope that this did not introduce other bugs – instant loading is actually extremely tricky to get right. I will revisit instant loading at a later time. Please check |
I went ahead and released the fix as part of 7.2.3. |
I'm having that issue with current version. Running 8.2.8 |
Thanks for reporting. Could you please check which version introduced the error? If you find the version that introduced the issue, please create a new issue and provide a minimal reproducible example. |
Thanks. 7.0.0 is introducing this behaviour, will open a new issue with sample |
Contribution guidelines
I've found a bug and checked that ...
mkdocs
orreadthedocs
themescustom_dir
,extra_javascript
andextra_css
Description
If the
navigation.instant
theme feature is enabled, links to anchors don't work as expected on Safari (MacOS and iOS). The target page is opened but the page is not scrolled to the anchor location.Expected behaviour
When clicking a link pointing to an anchor, the page should be scrolled to that location.
Actual behaviour
The page doesn't scroll to the anchor location.
Steps to reproduce
A link to page1#section2
Package versions
Configuration
see `reproduction.zip`
System information
The text was updated successfully, but these errors were encountered: