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:
@@ -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 = '';
|
||||
|
||||
Reference in New Issue
Block a user