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:
nfebe 2026-05-12 12:01:13 +01:00
parent 63680bdce5
commit e346a660a8

View file

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