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)