From cb3e23f64abc9496e987f171bd77cb45a3353836 Mon Sep 17 00:00:00 2001 From: oniatsu <5919569+oniatsu@users.noreply.github.com> Date: Mon, 19 Jan 2026 11:37:50 +0900 Subject: [PATCH] Fix opening default Vomnibar search next to current tab --- pages/vomnibar_page.js | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) 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)) {