From 6fb130754899bfb2c1e4b62d570fe579fc68c784 Mon Sep 17 00:00:00 2001 From: aswanson-nr Date: Mon, 27 Sep 2021 14:21:50 -0700 Subject: [PATCH] fix: remove extra encoding step * URLSearchParams handles encoding the strings, so we were double encoding it. --- src/components/InstallButton.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/InstallButton.js b/src/components/InstallButton.js index fb710165a..5c67260d2 100644 --- a/src/components/InstallButton.js +++ b/src/components/InstallButton.js @@ -59,7 +59,7 @@ const createInstallLink = ( }); } - installUrl.searchParams.set('return_to', encodeURIComponent(platformUrl)); + installUrl.searchParams.set('return_to', platformUrl); return installUrl.href; };