mirror of
https://github.com/nextcloud/server.git
synced 2026-05-28 04:32:30 -04:00
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 <fenn25.fn@gmail.com>
This commit is contained in:
parent
63680bdce5
commit
e346a660a8
1 changed files with 1 additions and 1 deletions
|
|
@ -102,7 +102,7 @@ class TagSearchProvider implements IProvider {
|
|||
$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()]),
|
||||
|
|
|
|||
Loading…
Reference in a new issue