acdlite / redux-router

Redux bindings for React Router – keep your router state inside your Redux store
MIT License
2.3k stars 216 forks source link

Hash URL's not working #268

Open JanMesaric opened 8 years ago

JanMesaric commented 8 years ago

Hi guys

I'm using redux-router 2.0.0.

When implementing the router I was expecting hash url's. I can see that react router supports them. I can also safely say that the routing with redux-router works as it should, just no state in the url is updated.

Could it be because browser history is enabled by default?

How can I solve this?

Sincerely, Jan

mjrussell commented 8 years ago

What history are you importing? For HashHistory you need the following:

import { createHashHistory } from 'history';

And are you adding the reducer to your store?

If you continue to have issues, providing a small example would be helpful. Also taking a look at some of the examples and seeing how these differ from your setup.