diff --git a/src/components/Settings/SearchBar.vue b/src/components/Settings/SearchBar.vue index 6174f9a7..9a1fa72d 100644 --- a/src/components/Settings/SearchBar.vue +++ b/src/components/Settings/SearchBar.vue @@ -129,7 +129,10 @@ export default { const searchEngine = searchPrefs.searchEngine || defaultSearchEngine; // Use either search bang, or preffered search engine const desiredSearchEngine = searchBang || searchEngine; - let searchUrl = findUrlForSearchEngine(desiredSearchEngine, searchEngineUrls); + const isCustomSearch = (searchPrefs.searchEngine === 'custom' && searchPrefs.customSearchEngine); + let searchUrl = isCustomSearch + ? searchPrefs.customSearchEngine + : findUrlForSearchEngine(desiredSearchEngine, searchEngineUrls); if (searchUrl) { // Append search query to URL, and launch searchUrl += encodeURIComponent(stripBangs(this.input, bangList)); this.launchWebSearch(searchUrl, openingMethod);