0

I am having the problem that React Router 0.11.1 routes all paths to my default handler, i.e. Home, even though I have a specific handler for the /about path:

var routes = (
  <Route path="/" handler={App}>
    <DefaultRoute name="home" handler={Home}/>
    <Route name="about" handler={About}/>
  </Route>
)
ReactRouter.run(routes, function (Handler) {
  React.render(<Handler/>, document.body)
})

Also, the router seems to attach #/ automatically to the end of the URL, which is confusing. Can someone please tell me how to fix my routing, so that I can access the About handler?

See my full project at GitHub.

4

0 回答 0