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

ZIM homepage is not properly redirected #682

Open
benoit74 opened this issue Jun 4, 2024 · 1 comment
Open

ZIM homepage is not properly redirected #682

benoit74 opened this issue Jun 4, 2024 · 1 comment
Assignees
Milestone

Comments

@benoit74
Copy link

benoit74 commented Jun 4, 2024

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.

@benoit74 benoit74 added the bug label Jun 4, 2024
@kelson42 kelson42 added this to the 3.8.0 milestone Jun 4, 2024
@mgautierfr
Copy link
Member

mgautierfr commented Jun 4, 2024

For people puzzled by this issue:
Url ending with / is correctly redirected. Url without ending / is not redirected
(github displays both urls identically)

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

No branches or pull requests

4 participants