diff --git a/src/server.py b/src/server.py index b2e589a..f0096bb 100644 --- a/src/server.py +++ b/src/server.py @@ -948,8 +948,8 @@ class WebServer: # return FileResponse(alt_path) # If neither path exists, return 404 - logger.info(f"File not found for path {full_path}") - raise HTTPException(status_code=404, detail="File not found") + logger.info(f"File not found for path {full_path} -- returning index.html") + return FileResponse(os.path.join(defines.static_content, "index.html")) async def save_context(self, context_id): """