From da865b5f7aa5f51b69432c060d04018381970a23 Mon Sep 17 00:00:00 2001 From: "copilot-swe-agent[bot]" <198982749+Copilot@users.noreply.github.com> Date: Thu, 26 Feb 2026 22:46:41 +0000 Subject: [PATCH] fix(search): correct file detail page URL in search results Both the /search page and the inline search in /files were generating links to /files/{id} which returns 404. The correct route is /files/{id}/detail. Co-authored-by: christianlouis <361235+christianlouis@users.noreply.github.com> --- frontend/templates/files.html | 2 +- frontend/templates/search.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/templates/files.html b/frontend/templates/files.html index d4f13beb..32713539 100644 --- a/frontend/templates/files.html +++ b/frontend/templates/files.html @@ -1012,7 +1012,7 @@ ${snippet ? `
…${snippet}…
` : ''}
- +
diff --git a/frontend/templates/search.html b/frontend/templates/search.html index 0a9f771b..6f4807a6 100644 --- a/frontend/templates/search.html +++ b/frontend/templates/search.html @@ -196,7 +196,7 @@ var tags = Array.isArray(hit.tags) ? hit.tags : (hit.tags ? [hit.tags] : []); var docType = hit.document_type || ''; var sender = hit.sender || hit.absender || ''; - var fileUrl = '/files/' + hit.file_id; + var fileUrl = '/files/' + hit.file_id + '/detail'; // Build badges var badges = '';