fix: url search param

This commit is contained in:
Timothy J. Baek 2024-05-22 23:32:02 -07:00
parent 97a4897da2
commit dbd79dab90
2 changed files with 5 additions and 2 deletions

File diff suppressed because one or more lines are too long

View File

@ -48,7 +48,10 @@ export const SpotlightSearch = () => {
console.log(searchValue);
setSearchValue("");
window.open(`http://localhost:8080/?q=${searchValue}`, "_blank");
window.open(
`http://localhost:8080/?q=${encodeURIComponent(searchValue)}`,
"_blank"
);
setOpen(false);
};