I was trying to add regex to allow paths like below, but i was not able to make it work.
eg:
'/hello/search.apple.tree''/hello/search.mango.tr''/view/location.chicago.illinois''/view/location.boston.ma'
I was trying to add regex to allow paths like below, but i was not able to make it work.
eg:
'/hello/search.apple.tree''/hello/search.mango.tr''/view/location.chicago.illinois''/view/location.boston.ma'React is using a library for the path (see react documentation)
The library is called path-to-regexp
You have to check what are the valid paths you can use with this lib.
Here is a demo you can try live: valid path demo
Probably you can resolve by adding this to you webpack dev server config.
historyApiFallback: {
disableDotRule: true
}
from: https://github.com/ReactTraining/react-router/issues/3409