-
-
Notifications
You must be signed in to change notification settings - Fork 10.7k
Closed
Description
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
Labels
No labels