fix(astrolabe): revert invalid files_pdfviewer URL for file links
The files_pdfviewer app route is internal to Nextcloud and not a valid
external URL. Reverted to using the standard Files app viewer URL for
all file types.
- Removed PDF-specific handling that used /apps/files_pdfviewer/
- All files now link to /apps/files/files/{id} (standard Files viewer)
- Fixes broken links in chunk modal titles and search results
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
Vendored
-6
@@ -665,12 +665,6 @@ export default {
|
||||
case 'note':
|
||||
return generateUrl(`/apps/notes/#/note/${id}`)
|
||||
case 'file':
|
||||
// For PDFs with page numbers, use the PDF viewer with page anchor
|
||||
if (result.page_number && metadata.path) {
|
||||
const pageParam = `#page=${result.page_number}`
|
||||
return generateUrl(`/apps/files_pdfviewer/?file=${encodeURIComponent(metadata.path)}${pageParam}`)
|
||||
}
|
||||
// For other files, use the standard file viewer
|
||||
if (id) {
|
||||
return generateUrl(`/apps/files/files/${id}?dir=/&editing=false&openfile=true`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user