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>
This commit is contained in:
copilot-swe-agent[bot]
2026-02-26 22:46:41 +00:00
parent 24c5a0263e
commit da865b5f7a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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 = '';