diff --git a/src/lib/components/layout/SearchModal.svelte b/src/lib/components/layout/SearchModal.svelte index 16983b53f6..3d137ffeaa 100644 --- a/src/lib/components/layout/SearchModal.svelte +++ b/src/lib/components/layout/SearchModal.svelte @@ -255,7 +255,7 @@ { label: $i18n.t('Start a new conversation'), onClick: async () => { - await goto(`/${query ? `?q=${query}` : ''}`); + await goto(`/${query ? `?q=${encodeURIComponent(query)}` : ''}`); show = false; onClose(); },