fix: spa index.html

This commit is contained in:
2026-04-26 12:33:54 +02:00
committed by Kleπek
parent 1139b92893
commit 4256398cca
+1
View File
@@ -496,6 +496,7 @@ class RequestHandler(http.server.SimpleHTTPRequestHandler, BaseHandler):
if ( if (
page.spa is not None page.spa is not None
and not (self.root_path / pathlib.Path(path[1:])).is_file() and not (self.root_path / pathlib.Path(path[1:])).is_file()
and not (self.root_path / pathlib.Path(path[1:]) / "index.html").is_file()
): ):
path = f"/{page.path}/{page.spa}" path = f"/{page.path}/{page.spa}"
return super().translate_path(path) return super().translate_path(path)