From 8d6eff27921b9864d658dc92ca60e78c5ecd4c56 Mon Sep 17 00:00:00 2001 From: Chris Coutinho Date: Thu, 18 Dec 2025 01:54:39 +0100 Subject: [PATCH] fix(astrolabe): revert invalid files_pdfviewer URL for file links MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- third_party/astrolabe/src/App.vue | 6 ------ 1 file changed, 6 deletions(-) diff --git a/third_party/astrolabe/src/App.vue b/third_party/astrolabe/src/App.vue index 0958225..6a94da7 100644 --- a/third_party/astrolabe/src/App.vue +++ b/third_party/astrolabe/src/App.vue @@ -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`) }