Skip to content

Commit ff5fba9

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 15db84f commit ff5fba9

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)