{"action":"created","issue":{"url":"https://api.github.com/repos/Narzerus/angular-permission/issues/229","repository_url":"https://api.github.com/repos/Narzerus/angular-permission","labels_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/229/comments","events_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/229/events","html_url":"https://github.com/Narzerus/angular-permission/issues/229","id":151822955,"number":229,"title":"Empty history","user":{"login":"cojack","id":334297,"avatar_url":"https://avatars.githubusercontent.com/u/334297?v=3","gravatar_id":"","url":"https://api.github.com/users/cojack","html_url":"https://github.com/cojack","followers_url":"https://api.github.com/users/cojack/followers","following_url":"https://api.github.com/users/cojack/following{/other_user}","gists_url":"https://api.github.com/users/cojack/gists{/gist_id}","starred_url":"https://api.github.com/users/cojack/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cojack/subscriptions","organizations_url":"https://api.github.com/users/cojack/orgs","repos_url":"https://api.github.com/users/cojack/repos","events_url":"https://api.github.com/users/cojack/events{/privacy}","received_events_url":"https://api.github.com/users/cojack/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Narzerus/angular-permission/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-04-29T09:05:14Z","updated_at":"2016-05-07T12:08:00Z","closed_at":"2016-05-07T11:50:30Z","body":"Without this fix #227 using angular-permission is useless because replace will work over and over and there is no history, history is empty. This replace functionality clear every time last history [ui-router#state.go](http://angular-ui.github.io/ui-router/site/#/api/ui.router.state.$state#methods_go) \r\n\r\n> location - {boolean=true|string=} - If true will update the url in the location bar, if false will not. If string, must be \"replace\", which will update url and also replace last history record.\r\n\r\nSo if you check permission every time application start, there will be no history at all, thats why this {'location':'replace'} brake core browser functionality like back and forward buttons. "},"comment":{"url":"https://api.github.com/repos/Narzerus/angular-permission/issues/comments/217631811","html_url":"https://github.com/Narzerus/angular-permission/issues/229#issuecomment-217631811","issue_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/229","id":217631811,"user":{"login":"masterspambot","id":581121,"avatar_url":"https://avatars.githubusercontent.com/u/581121?v=3","gravatar_id":"","url":"https://api.github.com/users/masterspambot","html_url":"https://github.com/masterspambot","followers_url":"https://api.github.com/users/masterspambot/followers","following_url":"https://api.github.com/users/masterspambot/following{/other_user}","gists_url":"https://api.github.com/users/masterspambot/gists{/gist_id}","starred_url":"https://api.github.com/users/masterspambot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/masterspambot/subscriptions","organizations_url":"https://api.github.com/users/masterspambot/orgs","repos_url":"https://api.github.com/users/masterspambot/repos","events_url":"https://api.github.com/users/masterspambot/events{/privacy}","received_events_url":"https://api.github.com/users/masterspambot/received_events","type":"User","site_admin":false},"created_at":"2016-05-07T12:07:59Z","updated_at":"2016-05-07T12:07:59Z","body":"Also included in v.2.3.8 for compatibility."}}