mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 06:55:46 +01:00
closes #2757
This commit is contained in:
@@ -56,7 +56,7 @@ searchController.search = function(req, res, next) {
|
|||||||
results.showAsTopics = req.query.showAs === 'topics';
|
results.showAsTopics = req.query.showAs === 'topics';
|
||||||
results.breadcrumbs = breadcrumbs;
|
results.breadcrumbs = breadcrumbs;
|
||||||
results.categories = categories;
|
results.categories = categories;
|
||||||
results.expandSearch = false;
|
results.expandSearch = !req.params.term;
|
||||||
|
|
||||||
plugins.fireHook('filter:search.build', {data: data, results: results}, function(err, data) {
|
plugins.fireHook('filter:search.build', {data: data, results: results}, function(err, data) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
|||||||
Reference in New Issue
Block a user