From c2aab0b1b88f3d405ee3afc7b8daa83f8c7f5b38 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 26 Jun 2015 17:46:58 +1000 Subject: [PATCH] more of type will not go to fullpage search if looking at a topic --- app/assets/javascripts/discourse/controllers/search.js.es6 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/controllers/search.js.es6 b/app/assets/javascripts/discourse/controllers/search.js.es6 index f465ee5fef0..ce28c5b73f1 100644 --- a/app/assets/javascripts/discourse/controllers/search.js.es6 +++ b/app/assets/javascripts/discourse/controllers/search.js.es6 @@ -88,7 +88,7 @@ export default Em.Controller.extend(Presence, { actions: { moreOfType: function(type) { - if (type === 'topic') { + if (type === 'topic' && this.get('searchContext.type') !== 'topic') { var term = this.get('term'); // TODO in topic and in category special handling Discourse.URL.routeTo("/search?q=" + encodeURIComponent(term));