diff --git a/components/search.js b/components/search.js index ce3de1a2..a17e6b15 100644 --- a/components/search.js +++ b/components/search.js @@ -41,7 +41,7 @@ export default function Search ({ sub }) { if (sub) { prefix = `/~${sub}` } - router.push(prefix + `/search?q=${q}`) + router.push(prefix + `/search?q=${encodeURIComponent(q)}`) } }} >