fix: spa index.html
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user