-
-
Notifications
You must be signed in to change notification settings - Fork 5
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
"Results" sections of developer.mozilla.org (MDN) are not showing up #327
Comments
Despite been solved upstream, this is still not working within warc2zim: webrecorder/wombat#156 (comment) |
The wombat issue is fixed, the issue is with warc2zim adding an unneeded %-encoding, converting from:
to:
The code on the page checks for the |
Unfortunately, the %-encoding is not unneeded, it is indeed over-encoded, but this mostly mandatory, or at least it is the best tradeoff found so far (see #206 for lengthy discussions on this). I agree this is what causes the problem here, and this issue is then indeed only a warc2zim issue. Thank you for the analysis! I don't know yet how we are supposed to handle this kind of situation ... but this is Kiwix team problem at least ^^ I remember that we also faced the same kind of problem somewhere else, but do not recall where. Not that common anyway, since query parameters are more meant to be interpreted by the web server than by the client-side JS. |
One idea: add a regex of URLs for which we want to ignore the query parameter. To be tested, but I think that in most cases (at least here in MDN it is the case), the server simply ignore the query parameter which is only used client-side. We can hence:
|
Here is a test ZIM demoing what I proposed above: tests_eng_mdn-page_2024-11.zim.zip (remove Note that the trick to rewrite the URL without escaping the At least the ZIM works well in kiwix-serve, mostly OK in kiwix-apple (there is a very different problem, see kiwix/kiwix-apple#1027), mostly OK in kiwix-android (there is a very different problem, see kiwix/kiwix-android#4084), OK on Kiwix PWA (on MacOS Firefox and Android Firefox) and Kiwix JS (on MacOS Firefox). That being said, it is going to be pretty ugly to integrate these changes inside the codebase in a generic manner (especially since we need to pass this information to JS at runtime). All thoughts are welcomed ^^ (and in the mean time, I will create again a WARC of https://farm.openzim.org/recipes/developer.mozilla.org_en and create the ZIM manually with my hacks if it is OK for you, at least to play in dev). |
See webrecorder/wombat#156
This is not a problem with Zimit2, problem happens also in Zimit1 and on replayweb.page
The text was updated successfully, but these errors were encountered: