kiwix-tools
kiwix-tools copied to clipboard
ZIM homepage is not properly redirected
For some reason, https://library.kiwix.org/viewer#edu.gcfglobal.org_en_all_2024-06 is not properly redirecting to https://library.kiwix.org/viewer#edu.gcfglobal.org_en_all_2024-06/edu.gcfglobal.org/en/topics/
The viewer loads but then for some reason the iframe is not redirected to the proper resource.
However https://library.kiwix.org/viewer#edu.gcfglobal.org_en_all_2024-06/ is properly redirecting the iframe to https://library.kiwix.org/viewer#edu.gcfglobal.org_en_all_2024-06/edu.gcfglobal.org/en/topics/
Looks like https://library.kiwix.org/content/edu.gcfglobal.org_en_all_2024-06 is returning a 404 while https://library.kiwix.org/content/edu.gcfglobal.org_en_all_2024-06/ is returning the expected 302.
This is a Zimit2 ZIM, so could be linked to a scraper bug / bad behavior, but I don't get what.
Another option is a varnish issue on our prod instance (@rgaudin ?) because I loaded the https://library.kiwix.org/content/edu.gcfglobal.org_en_all_2024-06 page before the ZIM was really published to the library (by mistake obviously), so varnish might have cached a 404 and this might not have been purged properly when the book was updated to 2024_06 version.