redux-router icon indicating copy to clipboard operation
redux-router copied to clipboard

Hash URL's not working

Open JanMesaric opened this issue 8 years ago • 1 comments

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

JanMesaric avatar Jul 26 '16 10:07 JanMesaric

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.

mjrussell avatar Jul 26 '16 16:07 mjrussell