From e9c1cd48bde08022d3c6e851cc223011717cfb69 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 29 Mar 2026 17:52:34 +0000 Subject: [PATCH 1/2] Initial plan From 17116d86032aac28e609ef00371f518c9259b3b3 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Sun, 29 Mar 2026 17:57:00 +0000 Subject: [PATCH 2/2] Fix 404 on /domains/{domain_id} by adding plural route alias and updating template link Agent-Logs-Url: https://github.com/christianlouis/dmarq/sessions/c498fef5-0a5e-4182-b765-fc3ec074b515 Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- backend/app/main.py | 6 ++++++ backend/app/templates/domains.html | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/backend/app/main.py b/backend/app/main.py index 93ca5fb..5a9876a 100644 --- a/backend/app/main.py +++ b/backend/app/main.py @@ -327,6 +327,12 @@ async def domain_details(request: Request, domain_id: str): ) +@app.get("/domains/{domain_id}", response_class=HTMLResponse) +async def domain_details_plural(request: Request, domain_id: str): + """View detailed reports for a specific domain (plural /domains/ path alias)""" + return await domain_details(request, domain_id) + + @app.get("/reports", response_class=HTMLResponse) async def reports(request: Request): return templates.TemplateResponse(request, "reports.html") diff --git a/backend/app/templates/domains.html b/backend/app/templates/domains.html index d0dc1e7..a844326 100644 --- a/backend/app/templates/domains.html +++ b/backend/app/templates/domains.html @@ -76,7 +76,7 @@ {% endcall %} {% call td("text-right") %}