From 2f6addf35173d7b57dd1f05768d26c71e9040c6c Mon Sep 17 00:00:00 2001 From: Classic298 <27028174+Classic298@users.noreply.github.com> Date: Wed, 30 Sep 2026 17:35:38 +0200 Subject: [PATCH] fix: new chat from the search dialog cuts off or changes text containing #, & or + (#31592) Starting a new chat from the search dialog with "Start a new conversation" sent a different message than the one typed: everything from a # or & onwards was dropped and + turned into a space. The typed text now reaches the new chat unchanged. Fixes #31469 --- src/lib/components/layout/SearchModal.svelte | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); },