From 7e210ea94cdd954d31131ed956923f621f812acc Mon Sep 17 00:00:00 2001 From: "moxey.eth" Date: Mon, 19 Feb 2024 13:41:15 +1100 Subject: [PATCH] fix: query param --- src/utils/fromQuery.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/utils/fromQuery.ts b/src/utils/fromQuery.ts index 699c6aca..8e1aa8c3 100644 --- a/src/utils/fromQuery.ts +++ b/src/utils/fromQuery.ts @@ -7,7 +7,8 @@ export function fromQuery(query: object): returnType { else if (decoded.startsWith('#O_')) decoded = JSON.parse(decoded.replace('#O_', '')) - obj[key] = decoded + // Omit any encoded ampersands. + obj[key.replace(/^amp;/, '')] = decoded } return obj as returnType }