Skip to content

Commit 327cc3b

Browse files
committed
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.
1 parent 4082691 commit 327cc3b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

apps/systemtags/lib/Search/TagSearchProvider.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ public function search(IUser $user, ISearchQuery $query): SearchResult {
102102
$thumbnailUrl = '';
103103
$link = $this->urlGenerator->linkToRoute('files.view.indexView', [
104104
'view' => 'tags',
105-
]) . '?dir=' . $tag->getId();
105+
]) . '?dir=/' . $tag->getId();
106106
$searchResultEntry = new SearchResultEntry(
107107
$thumbnailUrl,
108108
$this->l10n->t('All tagged %s …', [$tag->getName()]),

0 commit comments

Comments
 (0)