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>
This commit is contained in:
copilot-swe-agent[bot]
2026-03-29 17:57:00 +00:00
parent e9c1cd48bd
commit 17116d8603
2 changed files with 7 additions and 1 deletions
+6
View File
@@ -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")
+1 -1
View File
@@ -76,7 +76,7 @@
{% endcall %}
{% call td("text-right") %}
<div class="flex justify-end space-x-2">
<a :href="'/domain/' + domain.name" class="btn btn-sm btn-outline">
<a :href="'/domains/' + domain.name" class="btn btn-sm btn-outline">
Details
</a>
{% call button(variant="outline", size="sm") %}