diff --git a/apps/systemtags/lib/Search/TagSearchProvider.php b/apps/systemtags/lib/Search/TagSearchProvider.php index 8fb2475999f6a..fe6f5470a1645 100644 --- a/apps/systemtags/lib/Search/TagSearchProvider.php +++ b/apps/systemtags/lib/Search/TagSearchProvider.php @@ -138,9 +138,9 @@ public function search(IUser $user, ISearchQuery $query): SearchResult { // prepare direct tag results $tagResults = array_map(function (ISystemTag $tag) { $thumbnailUrl = ''; - $link = $this->urlGenerator->linkToRoute( - 'files.view.index' - ) . '?view=systemtagsfilter&tags='.$tag->getId(); + $link = $this->urlGenerator->linkToRoute('files.view.indexView', [ + 'view' => 'tags', + ]) . '?dir='.$tag->getId(); $searchResultEntry = new SearchResultEntry( $thumbnailUrl, $this->l10n->t('All tagged %s …', [$tag->getName()]),