{"action":"opened","issue":{"url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/751","repository_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter","labels_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/751/labels{/name}","comments_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/751/comments","events_url":"https://api.github.com/repos/AngularClass/angular2-webpack-starter/issues/751/events","html_url":"https://github.com/AngularClass/angular2-webpack-starter/issues/751","id":163567704,"number":751,"title":"async router bug: async route with multiple children throws exception if you page load with full url path","user":{"login":"ncfx","id":14929545,"avatar_url":"https://avatars.githubusercontent.com/u/14929545?v=3","gravatar_id":"","url":"https://api.github.com/users/ncfx","html_url":"https://github.com/ncfx","followers_url":"https://api.github.com/users/ncfx/followers","following_url":"https://api.github.com/users/ncfx/following{/other_user}","gists_url":"https://api.github.com/users/ncfx/gists{/gist_id}","starred_url":"https://api.github.com/users/ncfx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ncfx/subscriptions","organizations_url":"https://api.github.com/users/ncfx/orgs","repos_url":"https://api.github.com/users/ncfx/repos","events_url":"https://api.github.com/users/ncfx/events{/privacy}","received_events_url":"https://api.github.com/users/ncfx/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2016-07-03T15:48:08Z","updated_at":"2016-07-03T15:48:08Z","closed_at":null,"body":"**Note: for support questions, please use one of these channels:** [Chat: AngularClass.slack](http://angularclass.com/member-join/) or [Twitter: @AngularClass](https://twitter.com/AngularClass)\r\n\r\n* **I'm submitting a ...**\r\n[X] bug report\r\n[ ] feature request\r\n[ ] question about the decisions made in the repository\r\n\r\n* **Do you want to request a *feature* or report a *bug*?**\r\nbug\r\n\r\n\r\n* **What is the current behavior?**\r\nIf you have an async route that has multiple children, and you attempt to load the page with the full URL (i.e. www.mydomain.com/route/childroute/params), an unhandled exception will be thrown for \"ChildRoute component cannot be found\". Execution continues, but the router reverts to the base href /.\r\n\r\nJust to be clear, when I say async route with multiple children, let's say +detail's routes is this: \r\n\r\n`export const routes = {\r\n  path: 'detail', component: Detail,\r\n  children: [\r\n    { path: '', component: Index },\r\n    { path: 'hello', component: Hello},\r\n    { path: 'world', component: World},\r\n    { path: 'user/:id', component: User}\r\n  ]\r\n};`\r\n\r\nand I want to load the page at: `http://localhost:3000/detail/user/xyz123` this will throw the exception and the router reverts to /.\r\n\r\n* **If the current behavior is a bug, please provide the steps to reproduce and if possible a minimal demo of the problem** via\r\nhttps://plnkr.co or similar (you can use this template as a starting point: http://plnkr.co/edit/tpl:AvJOMERrnz94ekVua0u5).\r\n\r\n\r\n\r\n* **What is the expected behavior?**\r\nRouter should not throw exception and a full URL path with child routes should be supported.\r\n\r\n\r\n* **What is the motivation / use case for changing the behavior?**\r\nThis is a standard feature of any router\r\n\r\n\r\n* **Please tell us about your environment:**\r\nJune 30th build of angular2-webpack-starter. Running on mac, Chrome 51.0.2704.106\r\n\r\n- Angular version: 2.0.0-beta.X\r\n- Browser: [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ]\r\n\r\n\r\n\r\n* **Other information** (e.g. detailed explanation, stacktraces, related issues, suggestions how to fix, links for us to have context, eg. stackoverflow, gitter, etc)\r\n"}}
{"actor":{"display_login":"ncfx"}}