diff --git a/src/modules/ui/configs/handle_routing.js b/src/modules/ui/configs/handle_routing.js index 5a7fd6d841b7..a1c08a195f55 100755 --- a/src/modules/ui/configs/handle_routing.js +++ b/src/modules/ui/configs/handle_routing.js @@ -41,13 +41,13 @@ export function handleInitialUrl(actions, location) { } export default function ({ reduxStore }, actions) { + // handle initial URL + handleInitialUrl(actions, window.location); + // subscribe to reduxStore and change the URL reduxStore.subscribe(() => changeUrl(reduxStore)); changeUrl(reduxStore); - // handle initial URL - handleInitialUrl(actions, window.location); - // handle back button window.onpopstate = () => { config.insidePopState = true;