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
This commit is contained in:
Classic298 2026-09-30 17:35:38 +02:00 • committed by GitHub
parent bee06b08ba
commit 2f6addf351
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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();
},