mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-27 17:46:05 -05:00
FIX: don't auto select context on mobile
This commit is contained in:
parent
c9398eaef9
commit
ded23cc9c5
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
|
|
|
@ -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');
|
||||
|
|
Loading…
Reference in a new issue