From 4256398cca4c5844b5cd3a8744a33f818863cf24 Mon Sep 17 00:00:00 2001 From: klemek Date: Sun, 26 Apr 2026 12:33:54 +0200 Subject: [PATCH] fix: spa index.html --- stapler/handlers.py | 1 + 1 file changed, 1 insertion(+) diff --git a/stapler/handlers.py b/stapler/handlers.py index 92bbc82..e1d00b9 100644 --- a/stapler/handlers.py +++ b/stapler/handlers.py @@ -496,6 +496,7 @@ class RequestHandler(http.server.SimpleHTTPRequestHandler, BaseHandler): if ( 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:]) / "index.html").is_file() ): path = f"/{page.path}/{page.spa}" return super().translate_path(path)