diff --git a/app/assets/javascripts/discourse/components/search.js b/app/assets/javascripts/discourse/components/search.js index a05a28e1a1e..452bd1c2cf6 100644 --- a/app/assets/javascripts/discourse/components/search.js +++ b/app/assets/javascripts/discourse/components/search.js @@ -22,7 +22,7 @@ Discourse.Search = { // Only include the data we have var data = { term: term } - if (opts.typeFilter) data.typeFilter = opts.typeFilter; + if (opts.typeFilter) data.type_filter = opts.typeFilter; if (opts.searchContext) data.search_context = opts.searchContext; return Discourse.ajax('/search', { data: data });