diff --git a/modules/LocationUtils.js b/modules/LocationUtils.js index 4dfcc390c..5f8bacafb 100644 --- a/modules/LocationUtils.js +++ b/modules/LocationUtils.js @@ -32,21 +32,6 @@ export function createLocation(path, state, key, currentLocation) { location.state = state; } - try { - location.pathname = decodeURI(location.pathname); - } catch (e) { - if (e instanceof URIError) { - throw new URIError( - 'Pathname "' + - location.pathname + - '" could not be decoded. ' + - 'This is likely caused by an invalid percent-encoding.' - ); - } else { - throw e; - } - } - if (key) location.key = key; if (currentLocation) {