{"action":"created","issue":{"url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/33","labels_url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/33/labels{/name}","comments_url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/33/comments","events_url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/33/events","html_url":"https://github.com/johnpapa/angular2-tour-of-heroes/issues/33","id":117456439,"number":33,"title":"Back button on /detail/{id} view always takes you to the /heroes","user":{"login":"mickeyvip","id":220427,"avatar_url":"https://avatars.githubusercontent.com/u/220427?v=3","gravatar_id":"","url":"https://api.github.com/users/mickeyvip","html_url":"https://github.com/mickeyvip","followers_url":"https://api.github.com/users/mickeyvip/followers","following_url":"https://api.github.com/users/mickeyvip/following{/other_user}","gists_url":"https://api.github.com/users/mickeyvip/gists{/gist_id}","starred_url":"https://api.github.com/users/mickeyvip/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mickeyvip/subscriptions","organizations_url":"https://api.github.com/users/mickeyvip/orgs","repos_url":"https://api.github.com/users/mickeyvip/repos","events_url":"https://api.github.com/users/mickeyvip/events{/privacy}","received_events_url":"https://api.github.com/users/mickeyvip/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-17T21:37:37Z","updated_at":"2015-11-17T23:29:53Z","closed_at":"2015-11-17T23:29:53Z","body":"The `back` button on `/detail` always takes you to the `/heroes` route, even if you arrive there from the root (dashboard).\r\n\r\nI would assume that `back` will bring me to where I was before.\r\n\r\nThank you.\r\n\r\nEDIT:\r\n\r\nIf I understand correctly, in order to do this, I need to import `ComponentInstruction` and `OnActivate`, implement `OnActivate` and get `next` + `prev` route representations.\r\nI go to this part, but I cannot figure out how to convert `ComponentInstruction` to actual route.\r\n\r\n`this._router.navigateByInstruction(prev)` does not work, since it expect `Instruction` with a property of type `ComponentInstruction`.\r\n\r\n`this._router.navigateByUrl(prev.urlPath)` does OK when returning to `/heroes`, but throws an exception when returning to the dashboard with both `\"\"` and `\"/\"`. "},"comment":{"url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/comments/157544294","html_url":"https://github.com/johnpapa/angular2-tour-of-heroes/issues/33#issuecomment-157544294","issue_url":"https://api.github.com/repos/johnpapa/angular2-tour-of-heroes/issues/33","id":157544294,"user":{"login":"johnpapa","id":1202528,"avatar_url":"https://avatars.githubusercontent.com/u/1202528?v=3","gravatar_id":"","url":"https://api.github.com/users/johnpapa","html_url":"https://github.com/johnpapa","followers_url":"https://api.github.com/users/johnpapa/followers","following_url":"https://api.github.com/users/johnpapa/following{/other_user}","gists_url":"https://api.github.com/users/johnpapa/gists{/gist_id}","starred_url":"https://api.github.com/users/johnpapa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnpapa/subscriptions","organizations_url":"https://api.github.com/users/johnpapa/orgs","repos_url":"https://api.github.com/users/johnpapa/repos","events_url":"https://api.github.com/users/johnpapa/events{/privacy}","received_events_url":"https://api.github.com/users/johnpapa/received_events","type":"User","site_admin":false},"created_at":"2015-11-17T23:29:53Z","updated_at":"2015-11-17T23:29:53Z","body":"fixed now. i used history back"}}