Fixes url state decoding in Firefox.

This commit is contained in:
Simon Howe
2016-04-07 14:01:58 +02:00
parent bfb65cb4af
commit f1c58efebb

View File

@@ -19,7 +19,7 @@ export function updateRoute() {
const urlStateString = window.location.hash
.replace('#!/state/', '')
.replace('#!/', '') || '{}';
const prevState = JSON.parse(urlStateString);
const prevState = JSON.parse(decodeURIComponent(urlStateString));
if (shouldReplaceState(prevState, state)) {
// Replace the top of the history rather than pushing on a new item.