Dva: Remove hash(#) from url in dva

Created on 19 Oct 2017  ·  1Comment  ·  Source: dvajs/dva

I have a problem with # in URL. I used [email protected] to create the project.
I have this problem also in dev and prod mode.

At this time it is like this:
http://example.com/#/user/1

I wanna to be like this:
http://example.com/user/1

Do you have any clue how can I fix it?
Thanks in advanced.

PS: sorry, because of StackOverflow rules, I couldn't create a new tag (dvajs).

Most helpful comment

default history is hashHistory, if you don't want to use it, you can use browserHistory.

read this: how to use browserHistory

>All comments

default history is hashHistory, if you don't want to use it, you can use browserHistory.

read this: how to use browserHistory

Was this page helpful?
0 / 5 - 0 ratings