Skip to content

redirect not working #1920

@pdeva

Description

@pdeva

I have code like this

export const routes:ReactRouter.Route = (
  <ReactRouter.Route path="/" component={topNav.TopNavbar}>
     <ReactRouter.Route path="comments" component={cbox.CommentBox}/>
     <ReactRouter.Route path="comments2" component={redditView}/>
     <ReactRouter.Redirect from="/" to="/comments" />
  </ReactRouter.Route>

so anyone who visits http://localhost:8080/ should automatically be redirected to http://localhost:8080/comments. However, it doesnt seem to work. There are no errors or warnings either to indicate something is wrong. Its almost as if the Redirect component is ignored by the router.

Am i doing something wrong?

Using react-router 1.0.0-rc1

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