Merge pull request #4501 from annando/fix-tag-search

Fix: Tag searches hadn't been stored as tags
This commit is contained in:
Hypolite Petovan 2018-02-26 11:13:51 -05:00 committed by GitHub
commit 3dac937f22
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ function search_content(App $a) {
$tag = false;
if (x($_GET,'tag')) {
$tag = true;
$search = ((x($_GET,'tag')) ? notags(trim(rawurldecode($_GET['tag']))) : '');
$search = (x($_GET,'tag') ? '#' . notags(trim(rawurldecode($_GET['tag']))) : '');
}
// contruct a wrapper for the search header