4.1.1
Sometimes my routes go to 404. I can consistently make it not work by viewing the online version in firefox private browser.
In which case the root will work but not routes. https://pocard.club vs https://pocard.club/about
Yet if I run on localhost I don't see this problem.
My brother said he saw a similar issue on safari on his iphone.
Since it doesn't happen on localhost I'm wondering if it is an issue with the hosting? Anyone experienced something similar?
// ....
const BasicExample = () => (
<Router>
<div>
<Navigation></Navigation>
<Route exact path="/" component={Home}/>
<Route path="/about" component={About}/>
<Route path="/login" component={Login}/>
<Route path="/test" component={Test}/>
<Route path="/privacy" component={Privacy}/>
<Route path="/confirm" component={Confirm}/>
</div>
</Router>
)
export default BasicExample
_Compiled and hosted on GH-Pages with Cloudflare DNS: https://github.com/kirkins/pocard.club/_
https://github.com/ReactTraining/react-router/blob/master/FAQ.md#why-doesnt-my-application-render-after-refreshing
That's not a problem with react-router, have a look at this
@josepot @pshrmn thank you
Most helpful comment
https://github.com/ReactTraining/react-router/blob/master/FAQ.md#why-doesnt-my-application-render-after-refreshing