From 96440af6d264b4d1deed2d9b925665982a1fe557 Mon Sep 17 00:00:00 2001 From: benoit74 Date: Fri, 20 Oct 2023 14:15:31 +0200 Subject: [PATCH] Empty main path is not working with Vue.JS --- scraper/src/kolibri2zim/scraper.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scraper/src/kolibri2zim/scraper.py b/scraper/src/kolibri2zim/scraper.py index a93daa7..9764f90 100644 --- a/scraper/src/kolibri2zim/scraper.py +++ b/scraper/src/kolibri2zim/scraper.py @@ -905,7 +905,7 @@ def run(self): return 1 self.creator = Creator( filename=self.output_dir.joinpath(self.clean_fname), - main_path="", + main_path="home", ignore_duplicates=True, ) self.creator.config_metadata( @@ -1128,7 +1128,7 @@ def add_zimui(self): path = str(Path(file).relative_to(self.zimui_dist)) logger.debug(f"Adding {path} to ZIM") self.creator.add_item_for( - path if path != "index.html" else "", + path if path != "index.html" else "home", fpath=file, is_front=path == "index.html", )