From b9bb60a66e833f033cef40e0478b051d0b4d12b8 Mon Sep 17 00:00:00 2001 From: nfebe Date: Tue, 12 May 2026 12:01:13 +0100 Subject: [PATCH] fix(systemtags): Include leading slash in unified search tag link Tag results from unified search opened the tags view with a directory path missing its leading slash, which the view rejected with "Invalid tag ID". Tag links now match the path convention used elsewhere so the tag opens correctly and lists the files associated with it. Signed-off-by: nfebe --- apps/systemtags/lib/Search/TagSearchProvider.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/systemtags/lib/Search/TagSearchProvider.php b/apps/systemtags/lib/Search/TagSearchProvider.php index 265ff78395d97..4d0cc7063f71e 100644 --- a/apps/systemtags/lib/Search/TagSearchProvider.php +++ b/apps/systemtags/lib/Search/TagSearchProvider.php @@ -98,7 +98,7 @@ public function search(IUser $user, ISearchQuery $query): SearchResult { $thumbnailUrl = ''; $link = $this->urlGenerator->linkToRoute('files.view.indexView', [ 'view' => 'tags', - ]) . '?dir=' . $tag->getId(); + ]) . '?dir=/' . $tag->getId(); $searchResultEntry = new SearchResultEntry( $thumbnailUrl, $this->l10n->t('All tagged %s …', [$tag->getName()]),