{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/13391","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/13391/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/13391/comments","events_url":"https://api.github.com/repos/angular/angular/issues/13391/events","html_url":"https://github.com/angular/angular/issues/13391","id":194912060,"number":13391,"title":"Location: Provide option to get number of back/forward steps","user":{"login":"klinki","id":1476175,"avatar_url":"https://avatars.githubusercontent.com/u/1476175?v=3","gravatar_id":"","url":"https://api.github.com/users/klinki","html_url":"https://github.com/klinki","followers_url":"https://api.github.com/users/klinki/followers","following_url":"https://api.github.com/users/klinki/following{/other_user}","gists_url":"https://api.github.com/users/klinki/gists{/gist_id}","starred_url":"https://api.github.com/users/klinki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klinki/subscriptions","organizations_url":"https://api.github.com/users/klinki/orgs","repos_url":"https://api.github.com/users/klinki/repos","events_url":"https://api.github.com/users/klinki/events{/privacy}","received_events_url":"https://api.github.com/users/klinki/received_events","type":"User","site_admin":false},"labels":[{"id":217986512,"url":"https://api.github.com/repos/angular/angular/labels/comp:%20common","name":"comp: common","color":"c7def8","default":false},{"id":375496864,"url":"https://api.github.com/repos/angular/angular/labels/freq1:%20low","name":"freq1: low","color":"fbca04","default":false},{"id":130606845,"url":"https://api.github.com/repos/angular/angular/labels/type:%20feature","name":"type: feature","color":"EEEEEE","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-12-12T08:03:59Z","updated_at":"2016-12-20T13:21:01Z","closed_at":null,"body":"**I'm submitting a ...**  (check one with \"x\")\r\n```\r\n[ ] bug report => search github for a similar issue or PR before submitting\r\n[X] feature request\r\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\r\n```\r\n\r\n**Current behavior**\r\nCurrently it is not possible to check if there is any back() / forward() step. Calling back() on first page user enters leads to reloading the same page.\r\n\r\n**Expected behavior**\r\nPlease provide option to get number of possible back() / forward() steps. Or at least some method to see if it is possible to do any back() / forward() steps.\r\n\r\n**What is the motivation / use case for changing the behavior?**\r\nback() step could be useful in many use cases, for example in form cancel button - it could lead to previously visited page. But without ability to see, if there is actually any previously visited page, it is not as useful as it could be. If there was such an option, developer could check if it is possible to do back() step and if so, do it, otherwise he could navigate to some predefined route.\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/268241285","html_url":"https://github.com/angular/angular/issues/13391#issuecomment-268241285","issue_url":"https://api.github.com/repos/angular/angular/issues/13391","id":268241285,"user":{"login":"klinki","id":1476175,"avatar_url":"https://avatars.githubusercontent.com/u/1476175?v=3","gravatar_id":"","url":"https://api.github.com/users/klinki","html_url":"https://github.com/klinki","followers_url":"https://api.github.com/users/klinki/followers","following_url":"https://api.github.com/users/klinki/following{/other_user}","gists_url":"https://api.github.com/users/klinki/gists{/gist_id}","starred_url":"https://api.github.com/users/klinki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klinki/subscriptions","organizations_url":"https://api.github.com/users/klinki/orgs","repos_url":"https://api.github.com/users/klinki/repos","events_url":"https://api.github.com/users/klinki/events{/privacy}","received_events_url":"https://api.github.com/users/klinki/received_events","type":"User","site_admin":false},"created_at":"2016-12-20T13:21:01Z","updated_at":"2016-12-20T13:21:01Z","body":"Any news on this? I guess I could create PR, since I need this feature, but I would like to know if it makes any sense to work on it - would it be accepted, if I create it? \r\n\r\nMeantime, is there any workaround how to get similar functionality?"}}
{"actor":{"display_login":"klinki"}}