kiwix / kiwix-js-pwa

Kiwix JS Offline Browser implemented as a Progressive Web App (PWA), and packaged as Electron, NWJS and UWP apps for Windows and Linux.
https://pwa.kiwix.org
GNU General Public License v3.0
177 stars 29 forks source link

Add support for Zimit v2.0 archive types #536

Closed Jaifroid closed 7 months ago

Jaifroid commented 7 months ago

There are a few parts to this:

Further info on the second item: as these ZIM types are not currently detected as zimit2, the existing handler thinks that all links in a zimit2 archive are external (due to Wombat rewriting). We either have to disable wombat rewriting for clicks on links as was done in https://github.com/kiwix/libkiwix/pull/1036, or else we have to use our existing detection method for Zimit files minus the header lookup. I'm not sure which will be better just now.