{"action":"created","issue":{"url":"https://api.github.com/repos/Narzerus/angular-permission/issues/41","labels_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/41/labels{/name}","comments_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/41/comments","events_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/41/events","html_url":"https://github.com/Narzerus/angular-permission/pull/41","id":55794090,"number":41,"title":"fix redirect event not being correctly triggered","user":{"login":"stefanotorresi","id":2952427,"avatar_url":"https://avatars.githubusercontent.com/u/2952427?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanotorresi","html_url":"https://github.com/stefanotorresi","followers_url":"https://api.github.com/users/stefanotorresi/followers","following_url":"https://api.github.com/users/stefanotorresi/following{/other_user}","gists_url":"https://api.github.com/users/stefanotorresi/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanotorresi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanotorresi/subscriptions","organizations_url":"https://api.github.com/users/stefanotorresi/orgs","repos_url":"https://api.github.com/users/stefanotorresi/repos","events_url":"https://api.github.com/users/stefanotorresi/events{/privacy}","received_events_url":"https://api.github.com/users/stefanotorresi/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-01-28T18:18:24Z","updated_at":"2015-02-09T19:47:44Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Narzerus/angular-permission/pulls/41","html_url":"https://github.com/Narzerus/angular-permission/pull/41","diff_url":"https://github.com/Narzerus/angular-permission/pull/41.diff","patch_url":"https://github.com/Narzerus/angular-permission/pull/41.patch"},"body":"I think the rationale of triggering manually `$stateChangeSuccess` was pointless for the redirect.\r\nIt ended up resulting in an inconsistent event trigger, with the actual state redirecting to being the one specified in `permission.redirectTo`, but the state passed to the events being the current `toState`, which is the denied state."},"comment":{"url":"https://api.github.com/repos/Narzerus/angular-permission/issues/comments/73576492","html_url":"https://github.com/Narzerus/angular-permission/pull/41#issuecomment-73576492","issue_url":"https://api.github.com/repos/Narzerus/angular-permission/issues/41","id":73576492,"user":{"login":"Narzerus","id":1808674,"avatar_url":"https://avatars.githubusercontent.com/u/1808674?v=3","gravatar_id":"","url":"https://api.github.com/users/Narzerus","html_url":"https://github.com/Narzerus","followers_url":"https://api.github.com/users/Narzerus/followers","following_url":"https://api.github.com/users/Narzerus/following{/other_user}","gists_url":"https://api.github.com/users/Narzerus/gists{/gist_id}","starred_url":"https://api.github.com/users/Narzerus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Narzerus/subscriptions","organizations_url":"https://api.github.com/users/Narzerus/orgs","repos_url":"https://api.github.com/users/Narzerus/repos","events_url":"https://api.github.com/users/Narzerus/events{/privacy}","received_events_url":"https://api.github.com/users/Narzerus/received_events","type":"User","site_admin":false},"created_at":"2015-02-09T19:47:44Z","updated_at":"2015-02-09T19:47:44Z","body":"Does this work for you? I'm pretty sure there was a ui-router bug related to this which is why we had to do. Check #9 "}}