diff --git a/frontend/src/lib/useQueryParam.ts b/frontend/src/lib/useQueryParam.ts index 342b0a71..b21a7bd2 100644 --- a/frontend/src/lib/useQueryParam.ts +++ b/frontend/src/lib/useQueryParam.ts @@ -10,7 +10,11 @@ export function parseQueryParam(val: LocationQueryValue | LocationQueryValue[ try { return JSON.parse(val) } catch { - return default_ + try { + return JSON.parse(decodeURIComponent(val)) + } catch { + return default_ + } } }