{"action":"created","issue":{"url":"https://api.github.com/repos/rackt/react-router/issues/2212","labels_url":"https://api.github.com/repos/rackt/react-router/issues/2212/labels{/name}","comments_url":"https://api.github.com/repos/rackt/react-router/issues/2212/comments","events_url":"https://api.github.com/repos/rackt/react-router/issues/2212/events","html_url":"https://github.com/rackt/react-router/issues/2212","id":110578314,"number":2212,"title":"IndexLink doesn't 'active' in nested routers configuration. (^1.0.0-rc3)","user":{"login":"CrisLi","id":360767,"avatar_url":"https://avatars.githubusercontent.com/u/360767?v=3","gravatar_id":"","url":"https://api.github.com/users/CrisLi","html_url":"https://github.com/CrisLi","followers_url":"https://api.github.com/users/CrisLi/followers","following_url":"https://api.github.com/users/CrisLi/following{/other_user}","gists_url":"https://api.github.com/users/CrisLi/gists{/gist_id}","starred_url":"https://api.github.com/users/CrisLi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrisLi/subscriptions","organizations_url":"https://api.github.com/users/CrisLi/orgs","repos_url":"https://api.github.com/users/CrisLi/repos","events_url":"https://api.github.com/users/CrisLi/events{/privacy}","received_events_url":"https://api.github.com/users/CrisLi/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-09T02:50:57Z","updated_at":"2015-10-09T06:00:21Z","closed_at":"2015-10-09T04:15:26Z","body":"My router configuration is like below.\r\n\r\n```jsx\r\n  <Router history={history}>\r\n    <Route component={App}>\r\n      <Route path=\"/login\" component={Login} />\r\n      <Route path=\"/\" onEnter={requireAuth} component={Home}>\r\n        <IndexRoute component={Dashboard} />\r\n        <Route path=\"/about\" component={About} />\r\n      </Route>\r\n      <Route path=\"*\" component={NotFound} />\r\n    </Route>\r\n  </Router>\r\n\r\n```\r\n\r\n```jsx\r\n    return (\r\n            <IndexLink\r\n              to=\"/\"\r\n              activeClassName=\"active\">Dashboard\r\n            </IndexLink>\r\n            <Link\r\n              to=\"/about\"\r\n              activeClassName=\"active\">About\r\n            </Link>\r\n    );\r\n```\r\n\r\nIn 1.0.0-rc1, I only need to use ```Link``` to active each <a> tag. But in the 1.0.0-rc3, I have to use ```IndexLink``` component. But the ```IndexLink``` is not active unless I change the router config lilke:\r\n\r\n```jsx\r\n  <Router history={history}>    \r\n      <Route path=\"/login\" component={Login} />\r\n      <Route path=\"/\" onEnter={requireAuth} component={Home}>\r\n        <IndexRoute component={Dashboard} />\r\n        <Route path=\"/about\" component={About} />\r\n      </Route>\r\n      <Route path=\"*\" component={NotFound} />\r\n  </Router>\r\n\r\n```\r\n\r\nIt seems like the ```InexLink``` only work for the root index. How to config a sub-index?"},"comment":{"url":"https://api.github.com/repos/rackt/react-router/issues/comments/146762633","html_url":"https://github.com/rackt/react-router/issues/2212#issuecomment-146762633","issue_url":"https://api.github.com/repos/rackt/react-router/issues/2212","id":146762633,"user":{"login":"CrisLi","id":360767,"avatar_url":"https://avatars.githubusercontent.com/u/360767?v=3","gravatar_id":"","url":"https://api.github.com/users/CrisLi","html_url":"https://github.com/CrisLi","followers_url":"https://api.github.com/users/CrisLi/followers","following_url":"https://api.github.com/users/CrisLi/following{/other_user}","gists_url":"https://api.github.com/users/CrisLi/gists{/gist_id}","starred_url":"https://api.github.com/users/CrisLi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CrisLi/subscriptions","organizations_url":"https://api.github.com/users/CrisLi/orgs","repos_url":"https://api.github.com/users/CrisLi/repos","events_url":"https://api.github.com/users/CrisLi/events{/privacy}","received_events_url":"https://api.github.com/users/CrisLi/received_events","type":"User","site_admin":false},"created_at":"2015-10-09T06:00:21Z","updated_at":"2015-10-09T06:00:21Z","body":"I have upload a demo project to https://github.com/CrisLi/react-router-demo\r\n\r\nPlease have look at it. When I click the 'Dashboard' link, it would not become 'active'. Let know if there anything I was wrong. Thanks a lot."}}