FIX: Navigate to full page search when enter key used in topic

FIX: Navigate to full page search when enter key used in topic

diff --git a/app/assets/javascripts/discourse/widgets/search-menu.js.es6 b/app/assets/javascripts/discourse/widgets/search-menu.js.es6
index c2dcb73..3ddd18d 100644
--- a/app/assets/javascripts/discourse/widgets/search-menu.js.es6
+++ b/app/assets/javascripts/discourse/widgets/search-menu.js.es6
@@ -97,10 +97,6 @@ export default createWidget("search-menu", {
     const ctx = contextEnabled ? this.searchContext() : null;
     const type = ctx ? Ember.get(ctx, "type") : null;
 
-    if (contextEnabled && type === "topic") {
-      return;
-    }
-
     let url = "/search";
     const params = [];
 
@@ -315,8 +311,6 @@ export default createWidget("search-menu", {
     if (url) {
       this.sendWidgetEvent("linkClicked");
       DiscourseURL.routeTo(url);
-    } else if (searchData.contextEnabled) {
-      this.triggerSearch();
     }
   }
 });

GitHub sha: b9215dda

This commit has been mentioned on Discourse Meta. There might be relevant details there:

This commit has been mentioned on Discourse Meta. There might be relevant details there: