pushState before dispatch

Otherwise, window.location.pathname does not accurate representation current route upon dispatch