diff --git a/mwdb/web/src/commons/helpers/renderTokens.tsx b/mwdb/web/src/commons/helpers/renderTokens.tsx index df01c124f..199e4a526 100644 --- a/mwdb/web/src/commons/helpers/renderTokens.tsx +++ b/mwdb/web/src/commons/helpers/renderTokens.tsx @@ -92,7 +92,10 @@ export function renderTokens(tokens: Token[], options?: Option): any { if (token.href && token.href.startsWith("search#")) { const query = token.href.slice("search#".length); const search = - "?" + new URLSearchParams({ q: query }).toString(); + "?" + + new URLSearchParams({ + q: decodeURIComponent(query), + }).toString(); return ( {renderTokens(tokens, options)}; }