Merge pull request #57 from christianlouis/copilot/fix-not-found-error

Fix 404 on /domains/{domain_id} page route
This commit is contained in:
Christian Krakau-Louis
2026-03-29 20:21:37 +02:00
committed by GitHub
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") %}