{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/10252","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/10252/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/10252/comments","events_url":"https://api.github.com/repos/angular/angular/issues/10252/events","html_url":"https://github.com/angular/angular/issues/10252","id":167169503,"number":10252,"title":"Router Cannot read property 'path' of undefined","user":{"login":"billsworld","id":16911647,"avatar_url":"https://avatars.githubusercontent.com/u/16911647?v=3","gravatar_id":"","url":"https://api.github.com/users/billsworld","html_url":"https://github.com/billsworld","followers_url":"https://api.github.com/users/billsworld/followers","following_url":"https://api.github.com/users/billsworld/following{/other_user}","gists_url":"https://api.github.com/users/billsworld/gists{/gist_id}","starred_url":"https://api.github.com/users/billsworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/billsworld/subscriptions","organizations_url":"https://api.github.com/users/billsworld/orgs","repos_url":"https://api.github.com/users/billsworld/repos","events_url":"https://api.github.com/users/billsworld/events{/privacy}","received_events_url":"https://api.github.com/users/billsworld/received_events","type":"User","site_admin":false},"labels":[{"id":375500771,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20router","name":"comp: router","color":"c7def8","default":false},{"id":317126348,"url":"https://api.github.com/repos/angular/angular/labels/flag:%20can%20be%20closed?","name":"flag: can be closed?","color":"bfdadc","default":false},{"id":375496864,"url":"https://api.github.com/repos/angular/angular/labels/freq1:%20low","name":"freq1: low","color":"fbca04","default":false},{"id":375498203,"url":"https://api.github.com/repos/angular/angular/labels/severity3:%20broken","name":"severity3: broken","color":"0052cc","default":false},{"id":130606843,"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug","name":"type: bug","color":"EEEEEE","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-07-23T05:45:54Z","updated_at":"2016-12-09T06:39:28Z","closed_at":"2016-12-09T06:39:28Z","body":"```\n[ x] bug report\n[ ] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\n\nI am using mgechev seed to do some testing so I have a [home routes](https://github.com/mgechev/angular2-seed/blob/master/src/client/app/%2Bhome/home.routes.ts) and [about routes](https://github.com/mgechev/angular2-seed/blob/master/src/client/app/%2Babout/about.routes.ts)\n\nIn my [app component](https://github.com/mgechev/angular2-seed/blob/master/src/client/app/app.component.ts) I am trying to navigate to the home route with `this.router.navigate(['', {foo: 'bar'}]);` \n\nThe issue is that this does not work as expected. If the user is currently on the `about` route `this.router.navigate(['', {foo: 'bar'}]);` will send them to /about;foo=bar, if the user is on the `home` route it produces the error `Cannot read property 'path' of undefined`\n\n**Expected/desired behavior**\n\nIf the user is on the `about` route `this.router.navigate(['', {foo: 'bar'}]);` should send them to the `home` route with query params ;foo=bar. If the user is already on the `home` route it should just change the query params.\n\nIf the user is on the `about` route and wants to change the query params it should require this code instead `this.router.navigate(['about', {foo: 'bar'}]);` otherwise there is no way to navigate to the `home` route from the `about` route\n\n**What is the motivation / use case for changing the behavior?**\nBeing able to change the query params on a route with an empty path such as the home route in this example.\n- **Angular version:** 2.0.0-rc.4\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/265944891","html_url":"https://github.com/angular/angular/issues/10252#issuecomment-265944891","issue_url":"https://api.github.com/repos/angular/angular/issues/10252","id":265944891,"user":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"created_at":"2016-12-09T06:39:28Z","updated_at":"2016-12-09T06:39:28Z","body":"Seems like it's no more. Please re-open if still an issue"}}
{"actor":{"display_login":"vicb"}}