{"action":"created","issue":{"url":"https://api.github.com/repos/driftyco/ionic/issues/3699","labels_url":"https://api.github.com/repos/driftyco/ionic/issues/3699/labels{/name}","comments_url":"https://api.github.com/repos/driftyco/ionic/issues/3699/comments","events_url":"https://api.github.com/repos/driftyco/ionic/issues/3699/events","html_url":"https://github.com/driftyco/ionic/issues/3699","id":75222145,"number":3699,"title":"bug: After resolve in state back button / bad history","user":{"login":"chrisschaub","id":3321008,"avatar_url":"https://avatars.githubusercontent.com/u/3321008?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisschaub","html_url":"https://github.com/chrisschaub","followers_url":"https://api.github.com/users/chrisschaub/followers","following_url":"https://api.github.com/users/chrisschaub/following{/other_user}","gists_url":"https://api.github.com/users/chrisschaub/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisschaub/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisschaub/subscriptions","organizations_url":"https://api.github.com/users/chrisschaub/orgs","repos_url":"https://api.github.com/users/chrisschaub/repos","events_url":"https://api.github.com/users/chrisschaub/events{/privacy}","received_events_url":"https://api.github.com/users/chrisschaub/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/driftyco/ionic/labels/needs%20reply","name":"needs reply","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-05-11T13:27:01Z","updated_at":"2015-06-05T22:04:51Z","closed_at":null,"body":"**Type**: <span ionic-type>bug</span>\n\n**Platform**: <span ionic-platform>all</span>  \n\n<span ionic-description>When I use resolve in a $state with ui-router, the promise returns and the controller is fired if resolve or not if reject. Great. But, the history / back button seems to be corrupted. It shows the back button on the \"resolve\" route when it should not.\n\nTo reproduce:\n1. Create a sidemenu project.\n2. Create a $state router with two paths, one needs a resolve. Both are in the left sidemenu.\n3. In your resolving factory service, implement a promise with resolve/reject. \n4. When you click the resolve menu link , when it resolves successfully, it will take you to the page, but with a back button which is incorrect.\n\nMy resolve in the $state config looks like\n...\n      resolve: {\n        'hasData': ['hasDataService', '$ionicHistory', function resolveControllerHasData(hasDataService, $ionicHistory) {\n          return hasDataService.appHasData();\n        }]\n      }\n....\n\nThanks for any help.</span>\n\n<span is-issue-template></span>\n"},"comment":{"url":"https://api.github.com/repos/driftyco/ionic/issues/comments/109454292","html_url":"https://github.com/driftyco/ionic/issues/3699#issuecomment-109454292","issue_url":"https://api.github.com/repos/driftyco/ionic/issues/3699","id":109454292,"user":{"login":"pavax","id":5336841,"avatar_url":"https://avatars.githubusercontent.com/u/5336841?v=3","gravatar_id":"","url":"https://api.github.com/users/pavax","html_url":"https://github.com/pavax","followers_url":"https://api.github.com/users/pavax/followers","following_url":"https://api.github.com/users/pavax/following{/other_user}","gists_url":"https://api.github.com/users/pavax/gists{/gist_id}","starred_url":"https://api.github.com/users/pavax/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pavax/subscriptions","organizations_url":"https://api.github.com/users/pavax/orgs","repos_url":"https://api.github.com/users/pavax/repos","events_url":"https://api.github.com/users/pavax/events{/privacy}","received_events_url":"https://api.github.com/users/pavax/received_events","type":"User","site_admin":false},"created_at":"2015-06-05T22:04:51Z","updated_at":"2015-06-05T22:04:51Z","body":"The last working version seems to be 1.0.0-beta.13.\r\n\r\n1.0.0-beta.13 (working):\r\nhttp://plnkr.co/edit/70q913JX3AhTC8vuGymj?p=preview\r\n\r\n1.0.0-beta.14 (not-working):\r\nhttp://plnkr.co/edit/G60ahN9wGbLXbQGIApWr?p=preview"}}