From 56e9df719aefc6f361a05e50cb1f6b60ffa36b4b Mon Sep 17 00:00:00 2001 From: Matchu Date: Fri, 12 Mar 2021 07:44:59 -0800 Subject: [PATCH] Stop encoding punctuation in item search bar Typing "foo:bar" would re-encode to "foo%3Abar"! --- src/app/ItemSearchPage.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/ItemSearchPage.js b/src/app/ItemSearchPage.js index dfdb04c..5fba3ce 100644 --- a/src/app/ItemSearchPage.js +++ b/src/app/ItemSearchPage.js @@ -45,7 +45,7 @@ function useSearchQueryInUrl() { const searchParams = new URLSearchParams(search); const query = { - value: value || "", + value: decodeURIComponent(value || ""), filterToZoneLabel: searchParams.get("zone") || null, filterToItemKind: searchParams.get("kind") || null, filterToCurrentUserOwnsOrWants: searchParams.get("user") || null,