Open simoneduca opened 7 years ago
What hash suffix?
@rogerhutchings the hash suffix in the app URL once deployed.
Oh. I'm pretty sure hash-based routing is the default on the starterify project. https://github.com/ReactTraining/react-router/blob/master/docs/guides/Histories.md
If you set up history routing and the user tries to navigate to a route that isn't there, you have to set up the bucket 404 to return index.html instead, and have a catch all route in the router to handle it
We use react-router
and browserHitory
in PFE too, so why don't we see those hashes there?
PFE uses browserHistory
, hence no hash. Vox isn't configured to use browserHistory
, so I believe it defaults to hashHistory
, so hashes.
Doh, of course. I'm wondering if we can remove react-router
from vox, given there's no navigation happening. The advantage would be to have readable urls.
What is it?