mirror of
https://github.com/discourse/discourse.git
synced 2024-12-02 05:29:17 -06:00
FIX: search context was missing when searching inside a category
This commit is contained in:
parent
ea9ff108c5
commit
9606ae5dcb
@ -57,7 +57,7 @@ function buildCategoryRoute(filter, params) {
|
||||
filterMode = "category/" + Discourse.Category.slugFor(model) + (noSubcategories ? "/none" : "") + "/l/" + filter,
|
||||
listFilter = "category/" + Discourse.Category.slugFor(model) + "/l/" + filter;
|
||||
|
||||
this.controllerFor('search').set('searchContext', model);
|
||||
this.controllerFor('search').set('searchContext', model.get('searchContext'));
|
||||
|
||||
var opts = { category: model, filterMode: filterMode };
|
||||
opts.noSubcategories = params && params.no_subcategories;
|
||||
|
Loading…
Reference in New Issue
Block a user