encode search query before searching
This commit is contained in:
parent
9287e7b93c
commit
f6ceda79d6
|
@ -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)}`)
|
||||
}
|
||||
}}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue