-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Instant loading: browser back button breaks internal links #6345
Comments
Thanks for reporting. We'll fix this once we find the time to work on instant loading again. |
@squidfunk I appreciate it, I really like the instant loading feature because it prevents the jiggling on every page navigation that you get if you turn it off (which I find distracting). |
I'm glad you like it! My time is currently bound with other parts of the theme + community support. I really hope for more sponsors to support the project, so I can delegate more of the community work to other folks, fixing bugs and churning out new features faster |
@squidfunk I am intimately aware, and very grateful for your time, and I hope to sponsor once my project (deployKF) starts making money! |
@squidfunk I have tracked down the cause of this issue, the issue no longer appears when I remove the following line: mkdocs-material/src/templates/assets/javascripts/integrations/instant/index.ts Lines 413 to 415 in c0aca21
I think it's worth just removing this line and dealing with the fact that crazy users can add hundreds of history elements if they spam-click stuff. But there is probably also some other fix that only prevents repeated anchor clicks and not actual page/path moves. |
Thanks for investigating. We want to solve this thoroughly, so just removing this line is not that simple. We added this line for reason. We need to refactor the logic, and I need to set aside time for that. Will come back to this in the next months. |
Any chance we can get some kind of flag in the mean time, to avoid me having to make a local fork? |
Nope, sorry. The introduction of additional feature flags needs to be done very carefully. You know, this project is used by tens of thousands of projects, including thousands of companies. We need to keep it stable. In the meantime, please disable instant loading to mitigate the problem. We'll work on that very soon again. We also hope for more funding from companies, which will allow us to fix problems and push out new features faster. In the meantime, we need to budget our, and especially my, time. I'm sorry for the inconvenience this is causing you or your company, but you know how it is. |
I totally understand thanks for all your hard work! I have made a temporary fork with that line removed so Instant navigation works properly on my site. |
Fixed in https://github.com/squidfunk/mkdocs-material-insiders/pull/79 – the fixes are currently only in Insiders, so anybody having access can already test them. I still need to do some minor refactoring that shouldn't impact the functionality, and after that, I'll backport the fixes to the community edition. I just wanted to give them into the hands of users as soon as possible. This should resolve all known problems with instant loading, at least I've tested this and all other issues. |
Fixes are now in #6662. Please check if the errors are now fixed when using this version in your project:
|
Released as part of 9.5.5. |
Context
No response
Bug description
On all browsers, if you have instant loading enabled, and click on an internal link, then use the browser's back button, attempting to use the same link again will do nothing.
Related links
Reproduction
9.4.8-back-button-breaks-links.zip
Steps to reproduce
Browser
No response
Before submitting
The text was updated successfully, but these errors were encountered: