Skip to content

Commit

Permalink
fix: remove extra encoding step
Browse files Browse the repository at this point in the history
* URLSearchParams handles encoding the strings, so we were double
encoding it.
  • Loading branch information
aswanson-nr committed Sep 27, 2021
1 parent 8d24174 commit 6fb1307
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/InstallButton.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ const createInstallLink = (
});
}

installUrl.searchParams.set('return_to', encodeURIComponent(platformUrl));
installUrl.searchParams.set('return_to', platformUrl);
return installUrl.href;
};

Expand Down

0 comments on commit 6fb1307

Please sign in to comment.