FIX: don't auto select context on mobile

This commit is contained in:
Sam 2015-09-16 09:02:53 +10:00
parent c9398eaef9
commit ded23cc9c5
2 changed files with 2 additions and 2 deletions

View file

@ -33,7 +33,7 @@ const HeaderController = Ember.Controller.extend({
var params = "";
if (context) {
params = `?context=${context.type}&context_id=${context.id}`;
params = `?context=${context.type}&context_id=${context.id}&skip_context=true`;
}
DiscourseURL.routeTo('/search' + params);

View file

@ -1,7 +1,7 @@
import { translateResults, getSearchKey, isValidSearchTerm } from "discourse/lib/search";
export default Discourse.Route.extend({
queryParams: { q: {}, context_id: {}, context: {} },
queryParams: { q: {}, context_id: {}, context: {}, skip_context: {} },
model(params) {
const router = Discourse.__container__.lookup('router:main');