Skip to content

React Router 0.11.1 routes all requests to Home handler #503

@aknuds1

Description

@aknuds1

I don't know if there's something I'm doing wrong, but after upgrading ChucK Demos from React Router 0.10.x to 0.11.1 and re-writing appropriately, every request is getting routed to the Home handler (my routing takes place in jsx/app.js). I have currently two valid routes, which are '/' and '/about'. Both worked prior to upgrading, but now /about routes to the Home handler and a hash is appended to the URL (so that it becomes e.g. http://localhost:3000/about#/).

My routes look like this:

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)
})

Am I doing something wrong? I even tried pasting the routing setup from your README, and everything still routed to Home. Please help make sort out these routing woes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions