Link tags after adding them through autosuggest.

This commit is contained in:
2019-03-09 13:22:32 +01:00
parent 20db3561cf
commit 05c48be785
3 changed files with 11 additions and 5 deletions

View File

@@ -41,8 +41,9 @@ class ProvideAutoSuggest extends JSONController
$results = Tag::matchPeople($data);
foreach ($results as $id_tag => $tag)
$this->payload['items'][] = [
'label' => $tag,
'label' => $tag['tag'],
'id_tag' => $id_tag,
'url' => BASEURL . '/' . $tag['slug'] . '/',
];
}
}