]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix(search): tags redirect route 45781/head
authorskjnldsv <skjnldsv@protonmail.com>
Tue, 11 Jun 2024 09:19:29 +0000 (11:19 +0200)
committerAndy Scherzinger <info@andy-scherzinger.de>
Tue, 11 Jun 2024 12:09:39 +0000 (14:09 +0200)
Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
apps/systemtags/lib/Search/TagSearchProvider.php

index a8ca5998c4842f3906377f75b6e66ce8ce4623c7..80f9d39c141ce21c5230c3bced36dd7e195f1b89 100644 (file)
@@ -116,9 +116,9 @@ class TagSearchProvider implements IProvider {
                // 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()]),