{"action":"created","issue":{"url":"https://api.github.com/repos/nonplus/angular-ui-router-uib-modal/issues/9","repository_url":"https://api.github.com/repos/nonplus/angular-ui-router-uib-modal","labels_url":"https://api.github.com/repos/nonplus/angular-ui-router-uib-modal/issues/9/labels{/name}","comments_url":"https://api.github.com/repos/nonplus/angular-ui-router-uib-modal/issues/9/comments","events_url":"https://api.github.com/repos/nonplus/angular-ui-router-uib-modal/issues/9/events","html_url":"https://github.com/nonplus/angular-ui-router-uib-modal/issues/9","id":156789544,"number":9,"title":"not returning to previous state","user":{"login":"pdemilly","id":2054680,"avatar_url":"https://avatars.githubusercontent.com/u/2054680?v=3","gravatar_id":"","url":"https://api.github.com/users/pdemilly","html_url":"https://github.com/pdemilly","followers_url":"https://api.github.com/users/pdemilly/followers","following_url":"https://api.github.com/users/pdemilly/following{/other_user}","gists_url":"https://api.github.com/users/pdemilly/gists{/gist_id}","starred_url":"https://api.github.com/users/pdemilly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pdemilly/subscriptions","organizations_url":"https://api.github.com/users/pdemilly/orgs","repos_url":"https://api.github.com/users/pdemilly/repos","events_url":"https://api.github.com/users/pdemilly/events{/privacy}","received_events_url":"https://api.github.com/users/pdemilly/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2016-05-25T16:06:45Z","updated_at":"2016-08-24T22:00:38Z","closed_at":"2016-08-17T22:59:13Z","body":"Upon exit from the modal, the router doesn't return to the previous state. I tried with $uibModalInstance.dismiss or $state.go ('^'). Same issue.\r\n\r\nI am using ui-router-extras. If I use $previousState.go() then it goes back to the previousState, however when the use click outside of the modal I am left in the modal state not the previousState as I would expect.\r\n\r\nBefore bringing up the modal \r\n---------------------------------------\r\nangular.js:12722 Action activated: Create Object {title: \"Create\", sref: \"wep.contacts.create\"}\r\n2016-05-25 09:02:27.870 angular.js:12722 ------------------------------------------------------\r\n2016-05-25 09:02:27.870 angular.js:12722    Current transition:  wep.contacts.list: {\"resource\":\"contacts\"}:  -> wep.contacts.create: {\"resource\":\"contacts\"}\r\n2016-05-25 09:02:27.870 angular.js:12722 Before transition, inactives are:   :  []\r\n2016-05-25 09:02:27.871 angular.js:12722 After transition,  inactives will be:  []\r\n2016-05-25 09:02:27.871 angular.js:12722 Transition will exit:   [\"EXIT: wep\", \"EXIT: wep.contacts\", \"EXIT: wep.contacts.list\"]\r\n2016-05-25 09:02:27.872 angular.js:12722 Transition will enter:  [\"RELOAD: wep\", \"RELOAD: wep.contacts\", \"RELOAD: wep.contacts.create\"]\r\n2016-05-25 09:02:27.872 angular.js:12722 SurrogateFromPath:  [\"wep\", \"wep.contacts\", \"wep.contacts.list\"]\r\n2016-05-25 09:02:27.873 angular.js:12722 SurrogateToPath:    [\"wep\", \"wep.contacts\", \"wep.contacts.create\"]\r\n2016-05-25 09:02:27.874 angular.js:12722 $stateChangeStart {\"url\":\"/create/:resource\",\"modal\":true,\"params\":{\"resource\":{\"value\":\"contacts\"}},\"templateUrl\":\"wep/views/contacts/create.html\",\"controller\":\"wep.contacts.create.controller\",\"controllerAs\":\"vm\",\"resolve\":{\"ThisResource\":[\"$log\",\"$stateParams\",\"CurrentOrganization\",null],\"ThisFormDefs\":[\"$stateParams\",\"CurrentOrganization\",\"ThisResource\",null],\"ThisInstance\":[\"$log\",\"$stateParams\",\"ThisResource\",null]},\"name\":\"wep.contacts.create\",\"data\":{}}\r\n2016-05-25 09:02:27.874 angular.js:12722 Inside authRequiredRedirect with params: {\"url\":\"/create/:resource\",\"modal\":true,\"params\":{\"resource\":{\"value\":\"contacts\"}},\"templateUrl\":\"wep/views/contacts/create.html\",\"controller\":\"wep.contacts.create.controller\",\"controllerAs\":\"vm\",\"resolve\":{\"ThisResource\":[\"$log\",\"$stateParams\",\"CurrentOrganization\",null],\"ThisFormDefs\":[\"$stateParams\",\"CurrentOrganization\",\"ThisResource\",null],\"ThisInstance\":[\"$log\",\"$stateParams\",\"ThisResource\",null]},\"name\":\"wep.contacts.create\",\"data\":{}}, auth.login\r\n2016-05-25 09:02:27.874 angular.js:12722 Do nothing:false wep.contacts.create\r\n2016-05-25 09:02:27.874 angular.js:12722 $stateChangeStart to undefined- fired when the transition begins. toState,toParams : \r\n Object {url: \"/create/:resource\", modal: true, params: Object, templateUrl: \"wep/views/contacts/create.html\", controller: \"wep.contacts.create.controller\"…} Object {$$uirouterextrasreload: \"0.6362266468477773\", resource: \"contacts\"}\r\n2016-05-25 09:02:27.875 angular.js:12722 refresh grid view\r\n2016-05-25 09:02:27.881 angular.js:12722 $stateChangeSuccess to wep.contacts.create- fired once the state transition is complete.\r\n2016-05-25 09:02:27.886 angular.js:12722 Getting current user menu Object {profile: Users, group: Groups, id: \"jacosta\", name: \"Jason Acosta\"} Groups {_id: \"566123a22156a1656c1b3e1c\", id: \"asset_managers\", name: \"Asset Manager\", displayAttribute: \"name\", _display: \"Asset Manager\"}\r\n2016-05-25 09:02:27.887 angular.js:12722 No menu defined for group Groups {_id: \"566123a22156a1656c1b3e1c\", id: \"asset_managers\", name: \"Asset Manager\", displayAttribute: \"name\", _display: \"Asset Manager\"}\r\n2016-05-25 09:02:27.887 angular.js:12722 $viewContentLoaded - fired after dom rendered Object {name: \"$viewContentLoaded\", targetScope: ChildScope, defaultPrevented: false, currentScope: Scope}\r\n2016-05-25 09:02:27.891 angular.js:12722 $viewContentLoaded - fired after dom rendered Object {name: \"$viewContentLoaded\", targetScope: Scope, defaultPrevented: false, currentScope: Scope}\r\n2016-05-25 09:02:27.897 angular.js:12722 $viewContentLoaded - fired after dom rendered Object {name: \"$viewContentLoaded\", targetScope: Scope, defaultPrevented: false, currentScope: Scope}\r\n2016-05-25 09:02:27.899 angular.js:12722 $viewContentLoaded - fired after dom rendered Object {name: \"$viewContentLoaded\", targetScope: ChildScope, defaultPrevented: false, currentScope: Scope}\r\n2016-05-25 09:02:27.903 angular.js:12722 wep.contacts.main.controller:  Object {params: Object, current: Object, $current: extend, transition: null} Defaults {defaultValues: Object, methods: Object, computed: Object, scopes: Object, actions: Object…}\r\n2016-05-25 09:02:27.905 angular.js:12722 $viewContentLoaded - fired after dom rendered Object {name: \"$viewContentLoaded\", targetScope: ChildScope, defaultPrevented: false, currentScope: Scope}\r\n2016-05-25 09:02:27.908 angular.js:12722 $viewContentLoaded - fired after dom rendered Object {name: \"$viewContentLoaded\", targetScope: ChildScope, defaultPrevented: false, currentScope: Scope}\r\n2016-05-25 09:02:27.909 angular.js:12722 $viewContentLoaded - fired after dom rendered Object {name: \"$viewContentLoaded\", targetScope: Scope, defaultPrevented: false, currentScope: Scope}\r\n2016-05-25 09:02:27.913 angular.js:12722 Current state: wep.contacts.create, inactive states:  []\r\n2016-05-25 09:02:27.914 angular.js:12722 Views: (__inactives.locals) / (root.locals) / (wep.locals: 'navigation@' (wep), 'topnavbar@' (wep), 'title@' (wep), 'main@' (wep), 'right_sidebar@' (wep), 'footer@' (wep)) / (wep.locals: 'navigation@' (wep), 'topnavbar@' (wep), 'title@' (wep), 'main@' (wep), 'right_sidebar@' (wep), 'footer@' (wep)) / (wep.contacts.locals: 'main@' (wep.contacts)) / (wep.contacts.create.locals: '@wep.contacts' (wep.contacts.create))\r\n2016-05-25 09:02:27.924 angular.js:12722 wep.contacts.edit.controller:  Defaults {defaultValues: Object, methods: Object, computed: Object, scopes: Object, actions: Object…} \r\n\r\nAfter dismissing dialog\r\n-------------------------------\r\nangular.js:12722    Current transition:  wep.contacts.create: {\"resource\":\"contacts\"}:  -> wep.contacts: {\"resource\":\"contacts\"}\r\n2016-05-25 09:02:31.075 angular.js:12722 Before transition, inactives are:   :  []\r\n2016-05-25 09:02:31.076 angular.js:12722 After transition,  inactives will be:  []\r\n2016-05-25 09:02:31.078 angular.js:12722 Transition will exit:   [\"(wep)\", \"(wep.contacts)\", \"EXIT: wep.contacts.create\"]\r\n2016-05-25 09:02:31.079 angular.js:12722 Transition will enter:  [\"(wep)\", \"(wep.contacts)\"]\r\n2016-05-25 09:02:31.081 angular.js:12722 SurrogateFromPath:  [\"wep\", \"wep.contacts\", \"wep.contacts.create\"]\r\n2016-05-25 09:02:31.083 angular.js:12722 SurrogateToPath:    [\"wep\", \"wep.contacts\"]\r\n2016-05-25 09:02:31.084 angular.js:12722 $stateChangeStart {\"url\":\"/contacts/:resource\",\"params\":{\"resource\":{\"value\":\"contacts\"}},\"views\":{\"main@\":{\"templateUrl\":\"wep/views/contacts/main.html\",\"controller\":\"wep.contacts.main.controller\"}},\"resolve\":{\"ThisResource\":[\"$log\",\"$stateParams\",\"CurrentOrganization\",null]},\"ncyBreadcrumb\":{\"label\":\"Admin\"},\"name\":\"wep.contacts\",\"data\":{},\"status\":\"entered\",\"ncyBreadcrumbLink\":\"#//contacts/contacts\",\"ncyBreadcrumbLabel\":\"Admin\"}\r\n2016-05-25 09:02:31.085 angular.js:12722 Inside authRequiredRedirect with params: {\"url\":\"/contacts/:resource\",\"params\":{\"resource\":{\"value\":\"contacts\"}},\"views\":{\"main@\":{\"templateUrl\":\"wep/views/contacts/main.html\",\"controller\":\"wep.contacts.main.controller\"}},\"resolve\":{\"ThisResource\":[\"$log\",\"$stateParams\",\"CurrentOrganization\",null]},\"ncyBreadcrumb\":{\"label\":\"Admin\"},\"name\":\"wep.contacts\",\"data\":{},\"status\":\"entered\",\"ncyBreadcrumbLink\":\"#//contacts/contacts\",\"ncyBreadcrumbLabel\":\"Admin\"}, auth.login\r\n2016-05-25 09:02:31.085 angular.js:12722 Do nothing:false wep.contacts\r\n2016-05-25 09:02:31.085 angular.js:12722 $stateChangeStart to undefined- fired when the transition begins. toState,toParams : \r\n Object {url: \"/contacts/:resource\", params: Object, views: Object, resolve: Object, ncyBreadcrumb: Object…} Object {resource: \"contacts\"}\r\n2016-05-25 09:02:31.090 angular.js:12722 $stateChangeSuccess to wep.contacts- fired once the state transition is complete.\r\n2016-05-25 09:02:31.092 angular.js:12722 Current state: wep.contacts, inactive states:  []\r\n2016-05-25 09:02:31.093 angular.js:12722 Views: (__inactives.locals) / (root.locals) / (wep.locals: 'navigation@' (wep), 'topnavbar@' (wep), 'title@' (wep), 'main@' (wep), 'right_sidebar@' (wep), 'footer@' (wep)) / (wep.locals: 'navigation@' (wep), 'topnavbar@' (wep), 'title@' (wep), 'main@' (wep), 'right_sidebar@' (wep), 'footer@' (wep)) / (wep.contacts.locals: 'main@' (wep.contacts))"},"comment":{"url":"https://api.github.com/repos/nonplus/angular-ui-router-uib-modal/issues/comments/242222008","html_url":"https://github.com/nonplus/angular-ui-router-uib-modal/issues/9#issuecomment-242222008","issue_url":"https://api.github.com/repos/nonplus/angular-ui-router-uib-modal/issues/9","id":242222008,"user":{"login":"MikiSoft","id":7763533,"avatar_url":"https://avatars.githubusercontent.com/u/7763533?v=3","gravatar_id":"","url":"https://api.github.com/users/MikiSoft","html_url":"https://github.com/MikiSoft","followers_url":"https://api.github.com/users/MikiSoft/followers","following_url":"https://api.github.com/users/MikiSoft/following{/other_user}","gists_url":"https://api.github.com/users/MikiSoft/gists{/gist_id}","starred_url":"https://api.github.com/users/MikiSoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikiSoft/subscriptions","organizations_url":"https://api.github.com/users/MikiSoft/orgs","repos_url":"https://api.github.com/users/MikiSoft/repos","events_url":"https://api.github.com/users/MikiSoft/events{/privacy}","received_events_url":"https://api.github.com/users/MikiSoft/received_events","type":"User","site_admin":false},"created_at":"2016-08-24T22:00:38Z","updated_at":"2016-08-24T22:00:38Z","body":"@nonplus: Thanks for the info, I have added now a (dummy) parent but then I have another problem - when trying to switch between modals using the same state, it prevents such and goes back to the parent one (which is unexpected and odd behavior, of course)."}}
{"actor":{"display_login":"MikiSoft"}}