I use express
as a nodeJs web application server and react-redux-router
to push
new location to the browser. After pushing the address in the address bar from localhost:3000/admin
change to localhost:3000
but it keeps on the same page.
I use dispatch(push('/'))
to execute the job.
[Update]
I used this solution but it didn't work for me
Wrapping components with withRouter solved my problem.