Stop encoding punctuation in item search bar

Typing "foo:bar" would re-encode to "foo%3Abar"!
This commit is contained in:
Emi Matchu 2021-03-12 07:44:59 -08:00
parent 8c5c36eb86
commit 56e9df719a

View file

@ -45,7 +45,7 @@ function useSearchQueryInUrl() {
const searchParams = new URLSearchParams(search); const searchParams = new URLSearchParams(search);
const query = { const query = {
value: value || "", value: decodeURIComponent(value || ""),
filterToZoneLabel: searchParams.get("zone") || null, filterToZoneLabel: searchParams.get("zone") || null,
filterToItemKind: searchParams.get("kind") || null, filterToItemKind: searchParams.get("kind") || null,
filterToCurrentUserOwnsOrWants: searchParams.get("user") || null, filterToCurrentUserOwnsOrWants: searchParams.get("user") || null,