Merge pull request #57 from christianlouis/copilot/fix-not-found-error
Fix 404 on /domains/{domain_id} page route
This commit is contained in:
@@ -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")
|
||||
|
||||
@@ -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") %}
|
||||
|
||||
Reference in New Issue
Block a user