diff --git a/pages/vomnibar_page.js b/pages/vomnibar_page.js index eaef28dfd..336491f09 100644 --- a/pages/vomnibar_page.js +++ b/pages/vomnibar_page.js @@ -288,13 +288,22 @@ class VomnibarUI { if (isUrl) { this.hide(() => this.launchUrl(query, openInNewTab)); } else { - this.hide(() => - chrome.runtime.sendMessage({ - handler: "launchSearchQuery", - query, - openInNewTab, - }) - ); + if (openInNewTab) { + this.hide(() => + chrome.runtime.sendMessage({ + handler: "openUrlInNewTab", + url: query, + }) + ); + } else { + this.hide(() => + chrome.runtime.sendMessage({ + handler: "launchSearchQuery", + query, + openInNewTab, + }) + ); + } } } } else if (isPrimarySearchSuggestion(completion)) {