React-router: Routes don't work when live and viewed from Firefox private tab

Created on 20 Jan 2018  路  3Comments  路  Source: ReactTraining/react-router

Version

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?

Routes

// ....
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/_

Most helpful comment

https://github.com/ReactTraining/react-router/blob/master/FAQ.md#why-doesnt-my-application-render-after-refreshing

All 3 comments

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

Was this page helpful?
0 / 5 - 0 ratings