Merge pull request #45790 from nextcloud/backport/45781/stable28

[stable28] fix(search): tags redirect route
This commit is contained in:
Ferdinand Thiessen 2024-06-11 18:25:20 +02:00 committed by GitHub
commit 9db32d1ef6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -138,9 +138,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()]),