{"action":"created","issue":{"url":"https://api.github.com/repos/meanjs/mean/issues/185","labels_url":"https://api.github.com/repos/meanjs/mean/issues/185/labels{/name}","comments_url":"https://api.github.com/repos/meanjs/mean/issues/185/comments","events_url":"https://api.github.com/repos/meanjs/mean/issues/185/events","html_url":"https://github.com/meanjs/mean/issues/185","id":43490758,"number":185,"title":"Has anybody implemented signin redirection to \"previous page\"?","user":{"login":"igorauad","id":5166844,"avatar_url":"https://avatars.githubusercontent.com/u/5166844?v=3","gravatar_id":"","url":"https://api.github.com/users/igorauad","html_url":"https://github.com/igorauad","followers_url":"https://api.github.com/users/igorauad/followers","following_url":"https://api.github.com/users/igorauad/following{/other_user}","gists_url":"https://api.github.com/users/igorauad/gists{/gist_id}","starred_url":"https://api.github.com/users/igorauad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/igorauad/subscriptions","organizations_url":"https://api.github.com/users/igorauad/orgs","repos_url":"https://api.github.com/users/igorauad/repos","events_url":"https://api.github.com/users/igorauad/events{/privacy}","received_events_url":"https://api.github.com/users/igorauad/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/meanjs/mean/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/meanjs/mean/labels/question","name":"question","color":"cc317c"}],"state":"closed","locked":false,"assignee":{"login":"lirantal","id":316371,"avatar_url":"https://avatars.githubusercontent.com/u/316371?v=3","gravatar_id":"","url":"https://api.github.com/users/lirantal","html_url":"https://github.com/lirantal","followers_url":"https://api.github.com/users/lirantal/followers","following_url":"https://api.github.com/users/lirantal/following{/other_user}","gists_url":"https://api.github.com/users/lirantal/gists{/gist_id}","starred_url":"https://api.github.com/users/lirantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lirantal/subscriptions","organizations_url":"https://api.github.com/users/lirantal/orgs","repos_url":"https://api.github.com/users/lirantal/repos","events_url":"https://api.github.com/users/lirantal/events{/privacy}","received_events_url":"https://api.github.com/users/lirantal/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/meanjs/mean/milestones/2","html_url":"https://github.com/meanjs/mean/milestones/0.4.0","labels_url":"https://api.github.com/repos/meanjs/mean/milestones/2/labels","id":638272,"number":2,"title":"0.4.0","description":"","creator":{"login":"roieki","id":277629,"avatar_url":"https://avatars.githubusercontent.com/u/277629?v=3","gravatar_id":"","url":"https://api.github.com/users/roieki","html_url":"https://github.com/roieki","followers_url":"https://api.github.com/users/roieki/followers","following_url":"https://api.github.com/users/roieki/following{/other_user}","gists_url":"https://api.github.com/users/roieki/gists{/gist_id}","starred_url":"https://api.github.com/users/roieki/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/roieki/subscriptions","organizations_url":"https://api.github.com/users/roieki/orgs","repos_url":"https://api.github.com/users/roieki/repos","events_url":"https://api.github.com/users/roieki/events{/privacy}","received_events_url":"https://api.github.com/users/roieki/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":118,"state":"open","created_at":"2014-04-23T17:12:19Z","updated_at":"2015-08-07T22:34:38Z","due_on":null,"closed_at":null},"comments":5,"created_at":"2014-09-22T14:20:05Z","updated_at":"2015-08-07T22:34:39Z","closed_at":"2015-08-07T22:34:38Z","body":"In case anyone implemented a scheme for redirecting the user to his previous state after sign-in , would it be possible to share?\r\n\r\nI was thinking I could some how add the previous state information to $state (as below) and inform this to the backend, which, in turn, would have to inform back after successful authentication. Perhaps this is more work than necessary. Thoughts? \r\n\r\n```javascript\r\napp.run(function ($rootScope, $state) {\r\n  $rootScope.$on('$stateChangeSuccess', function (event, toState, toParams, fromState) {\r\n    $state.previous = fromState;\r\n  });\r\n});\r\n```\r\n"},"comment":{"url":"https://api.github.com/repos/meanjs/mean/issues/comments/128848754","html_url":"https://github.com/meanjs/mean/issues/185#issuecomment-128848754","issue_url":"https://api.github.com/repos/meanjs/mean/issues/185","id":128848754,"user":{"login":"lirantal","id":316371,"avatar_url":"https://avatars.githubusercontent.com/u/316371?v=3","gravatar_id":"","url":"https://api.github.com/users/lirantal","html_url":"https://github.com/lirantal","followers_url":"https://api.github.com/users/lirantal/followers","following_url":"https://api.github.com/users/lirantal/following{/other_user}","gists_url":"https://api.github.com/users/lirantal/gists{/gist_id}","starred_url":"https://api.github.com/users/lirantal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lirantal/subscriptions","organizations_url":"https://api.github.com/users/lirantal/orgs","repos_url":"https://api.github.com/users/lirantal/repos","events_url":"https://api.github.com/users/lirantal/events{/privacy}","received_events_url":"https://api.github.com/users/lirantal/received_events","type":"User","site_admin":false},"created_at":"2015-08-07T22:34:38Z","updated_at":"2015-08-07T22:34:38Z","body":"closed, implemented in https://github.com/meanjs/mean/pull/487"}}