From 9acda4024f0fe9a62da9c99a9df06bd53c11100c Mon Sep 17 00:00:00 2001 From: Mike Fix Date: Tue, 7 Aug 2018 15:48:26 -0700 Subject: [PATCH] Revert "Issue #452: Fix 500 error with `%` in `code`. (#453)" This reverts commit 46dcdef043ebb46c49b6a2717fbe99fa803c219b. --- lib/routing.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/routing.js b/lib/routing.js index 46231fd..4bc612f 100644 --- a/lib/routing.js +++ b/lib/routing.js @@ -93,7 +93,8 @@ export const updateQueryString = state => { const mappedState = mapper.map(reverseMappings, state) history.replace({ - search: encodeURIComponent(keysToQuery(mappedState)) + // Do NOT change this to encodeURIComponent + search: encodeURI(keysToQuery(mappedState)) }) } }