From 0c403272e2e34df9c72056ddc96adaa50823f6bb Mon Sep 17 00:00:00 2001
From: Sam <sam.saffron@gmail.com>
Date: Sun, 28 Jun 2015 10:00:17 +1000
Subject: [PATCH] missing condition

---
 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 ce28c5b73..2bf818304 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' && this.get('searchContext.type') !== 'topic') {
+      if (type === 'topic' && (!this.get('searchContextEnabled') || 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));