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

This commit is contained in:
Vinoth Kannan 2019-01-17 22:34:23 +05:30
parent b9355f316a
commit b9215ddaea

View File

@ -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();
}
}
});