diff --git a/app/components/Header/SearchBox.vue b/app/components/Header/SearchBox.vue index df13dcdc85..132fc6f2f2 100644 --- a/app/components/Header/SearchBox.vue +++ b/app/components/Header/SearchBox.vue @@ -79,6 +79,19 @@ function handleSearchFocus() { emit('focus') } +function handleSubmit() { + if (pagesWithLocalFilter.has(route.name as string)) { + router.push({ + name: 'search', + query: { + q: searchQuery.value, + }, + }) + } else { + updateUrlQuery.flush() + } +} + // Expose focus method for parent components const inputRef = shallowRef(null) function focus() { @@ -88,7 +101,7 @@ defineExpose({ focus })