{"action":"created","comment":{"url":"https://api.github.com/repos/ramdog/thrashtown/pulls/comments/32889713","id":32889713,"diff_hunk":"@@ -14,8 +14,14 @@ angular.module('thrashtownApp')\n           password: $scope.user.password\n         })\n         .then( function() {\n-          // Logged in, redirect to home\n-          $state.go('main');\n+          if (Auth.loginRedirectIsSet()) {\n+            var { state, params } = Auth.getLoginRedirect();","path":"client/app/account/login/login.controller.js","position":7,"original_position":7,"commit_id":"8688ae623e28f612c7ef5839b9c4d7f52d292f8e","original_commit_id":"8688ae623e28f612c7ef5839b9c4d7f52d292f8e","user":{"login":"guilload","id":3011588,"avatar_url":"https://avatars.githubusercontent.com/u/3011588?v=3","gravatar_id":"","url":"https://api.github.com/users/guilload","html_url":"https://github.com/guilload","followers_url":"https://api.github.com/users/guilload/followers","following_url":"https://api.github.com/users/guilload/following{/other_user}","gists_url":"https://api.github.com/users/guilload/gists{/gist_id}","starred_url":"https://api.github.com/users/guilload/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilload/subscriptions","organizations_url":"https://api.github.com/users/guilload/orgs","repos_url":"https://api.github.com/users/guilload/repos","events_url":"https://api.github.com/users/guilload/events{/privacy}","received_events_url":"https://api.github.com/users/guilload/received_events","type":"User","site_admin":false},"body":"yeah that's pretty cool!","created_at":"2015-06-21T01:39:33Z","updated_at":"2015-06-21T01:39:33Z","html_url":"https://github.com/ramdog/thrashtown/pull/30#discussion_r32889713","pull_request_url":"https://api.github.com/repos/ramdog/thrashtown/pulls/30","_links":{"self":{"href":"https://api.github.com/repos/ramdog/thrashtown/pulls/comments/32889713"},"html":{"href":"https://github.com/ramdog/thrashtown/pull/30#discussion_r32889713"},"pull_request":{"href":"https://api.github.com/repos/ramdog/thrashtown/pulls/30"}}},"pull_request":{"url":"https://api.github.com/repos/ramdog/thrashtown/pulls/30","id":38169857,"html_url":"https://github.com/ramdog/thrashtown/pull/30","diff_url":"https://github.com/ramdog/thrashtown/pull/30.diff","patch_url":"https://github.com/ramdog/thrashtown/pull/30.patch","issue_url":"https://api.github.com/repos/ramdog/thrashtown/issues/30","number":30,"state":"open","locked":false,"title":"Redirect to originally requested page after login","user":{"login":"guilload","id":3011588,"avatar_url":"https://avatars.githubusercontent.com/u/3011588?v=3","gravatar_id":"","url":"https://api.github.com/users/guilload","html_url":"https://github.com/guilload","followers_url":"https://api.github.com/users/guilload/followers","following_url":"https://api.github.com/users/guilload/following{/other_user}","gists_url":"https://api.github.com/users/guilload/gists{/gist_id}","starred_url":"https://api.github.com/users/guilload/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/guilload/subscriptions","organizations_url":"https://api.github.com/users/guilload/orgs","repos_url":"https://api.github.com/users/guilload/repos","events_url":"https://api.github.com/users/guilload/events{/privacy}","received_events_url":"https://api.github.com/users/guilload/received_events","type":"User","site_admin":false},"body":"[#19184368000549]","created_at":"2015-06-20T15:44:59Z","updated_at":"2015-06-21T01:39:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"70d04aa9359fc62d680a2595160478e67e280af9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ramdog/thrashtown/pulls/30/commits","review_comments_url":"https://api.github.com/repos/ramdog/thrashtown/pulls/30/comments","review_comment_url":"https://api.github.com/repos/ramdog/thrashtown/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ramdog/thrashtown/issues/30/comments","statuses_url":"https://api.github.com/repos/ramdog/thrashtown/statuses/8688ae623e28f612c7ef5839b9c4d7f52d292f8e","head":{"label":"ramdog:login-redirect","ref":"login-redirect","sha":"8688ae623e28f612c7ef5839b9c4d7f52d292f8e","user":{"login":"ramdog","id":5456178,"avatar_url":"https://avatars.githubusercontent.com/u/5456178?v=3","gravatar_id":"","url":"https://api.github.com/users/ramdog","html_url":"https://github.com/ramdog","followers_url":"https://api.github.com/users/ramdog/followers","following_url":"https://api.github.com/users/ramdog/following{/other_user}","gists_url":"https://api.github.com/users/ramdog/gists{/gist_id}","starred_url":"https://api.github.com/users/ramdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramdog/subscriptions","organizations_url":"https://api.github.com/users/ramdog/orgs","repos_url":"https://api.github.com/users/ramdog/repos","events_url":"https://api.github.com/users/ramdog/events{/privacy}","received_events_url":"https://api.github.com/users/ramdog/received_events","type":"User","site_admin":false},"repo":{"id":19902280,"name":"thrashtown","full_name":"ramdog/thrashtown","owner":{"login":"ramdog","id":5456178,"avatar_url":"https://avatars.githubusercontent.com/u/5456178?v=3","gravatar_id":"","url":"https://api.github.com/users/ramdog","html_url":"https://github.com/ramdog","followers_url":"https://api.github.com/users/ramdog/followers","following_url":"https://api.github.com/users/ramdog/following{/other_user}","gists_url":"https://api.github.com/users/ramdog/gists{/gist_id}","starred_url":"https://api.github.com/users/ramdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramdog/subscriptions","organizations_url":"https://api.github.com/users/ramdog/orgs","repos_url":"https://api.github.com/users/ramdog/repos","events_url":"https://api.github.com/users/ramdog/events{/privacy}","received_events_url":"https://api.github.com/users/ramdog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ramdog/thrashtown","description":"A simple surf session journal","fork":false,"url":"https://api.github.com/repos/ramdog/thrashtown","forks_url":"https://api.github.com/repos/ramdog/thrashtown/forks","keys_url":"https://api.github.com/repos/ramdog/thrashtown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramdog/thrashtown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramdog/thrashtown/teams","hooks_url":"https://api.github.com/repos/ramdog/thrashtown/hooks","issue_events_url":"https://api.github.com/repos/ramdog/thrashtown/issues/events{/number}","events_url":"https://api.github.com/repos/ramdog/thrashtown/events","assignees_url":"https://api.github.com/repos/ramdog/thrashtown/assignees{/user}","branches_url":"https://api.github.com/repos/ramdog/thrashtown/branches{/branch}","tags_url":"https://api.github.com/repos/ramdog/thrashtown/tags","blobs_url":"https://api.github.com/repos/ramdog/thrashtown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramdog/thrashtown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramdog/thrashtown/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramdog/thrashtown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramdog/thrashtown/statuses/{sha}","languages_url":"https://api.github.com/repos/ramdog/thrashtown/languages","stargazers_url":"https://api.github.com/repos/ramdog/thrashtown/stargazers","contributors_url":"https://api.github.com/repos/ramdog/thrashtown/contributors","subscribers_url":"https://api.github.com/repos/ramdog/thrashtown/subscribers","subscription_url":"https://api.github.com/repos/ramdog/thrashtown/subscription","commits_url":"https://api.github.com/repos/ramdog/thrashtown/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramdog/thrashtown/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramdog/thrashtown/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramdog/thrashtown/issues/comments{/number}","contents_url":"https://api.github.com/repos/ramdog/thrashtown/contents/{+path}","compare_url":"https://api.github.com/repos/ramdog/thrashtown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramdog/thrashtown/merges","archive_url":"https://api.github.com/repos/ramdog/thrashtown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramdog/thrashtown/downloads","issues_url":"https://api.github.com/repos/ramdog/thrashtown/issues{/number}","pulls_url":"https://api.github.com/repos/ramdog/thrashtown/pulls{/number}","milestones_url":"https://api.github.com/repos/ramdog/thrashtown/milestones{/number}","notifications_url":"https://api.github.com/repos/ramdog/thrashtown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramdog/thrashtown/labels{/name}","releases_url":"https://api.github.com/repos/ramdog/thrashtown/releases{/id}","created_at":"2014-05-18T03:49:56Z","updated_at":"2015-05-06T03:18:17Z","pushed_at":"2015-06-20T15:44:59Z","git_url":"git://github.com/ramdog/thrashtown.git","ssh_url":"git@github.com:ramdog/thrashtown.git","clone_url":"https://github.com/ramdog/thrashtown.git","svn_url":"https://github.com/ramdog/thrashtown","homepage":"http://www.thrashtown.com/","size":1514,"stargazers_count":38,"watchers_count":38,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":38,"default_branch":"master"}},"base":{"label":"ramdog:master","ref":"master","sha":"89d393ebf73e37fd26a96b44ca35c3b55e4d67ea","user":{"login":"ramdog","id":5456178,"avatar_url":"https://avatars.githubusercontent.com/u/5456178?v=3","gravatar_id":"","url":"https://api.github.com/users/ramdog","html_url":"https://github.com/ramdog","followers_url":"https://api.github.com/users/ramdog/followers","following_url":"https://api.github.com/users/ramdog/following{/other_user}","gists_url":"https://api.github.com/users/ramdog/gists{/gist_id}","starred_url":"https://api.github.com/users/ramdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramdog/subscriptions","organizations_url":"https://api.github.com/users/ramdog/orgs","repos_url":"https://api.github.com/users/ramdog/repos","events_url":"https://api.github.com/users/ramdog/events{/privacy}","received_events_url":"https://api.github.com/users/ramdog/received_events","type":"User","site_admin":false},"repo":{"id":19902280,"name":"thrashtown","full_name":"ramdog/thrashtown","owner":{"login":"ramdog","id":5456178,"avatar_url":"https://avatars.githubusercontent.com/u/5456178?v=3","gravatar_id":"","url":"https://api.github.com/users/ramdog","html_url":"https://github.com/ramdog","followers_url":"https://api.github.com/users/ramdog/followers","following_url":"https://api.github.com/users/ramdog/following{/other_user}","gists_url":"https://api.github.com/users/ramdog/gists{/gist_id}","starred_url":"https://api.github.com/users/ramdog/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramdog/subscriptions","organizations_url":"https://api.github.com/users/ramdog/orgs","repos_url":"https://api.github.com/users/ramdog/repos","events_url":"https://api.github.com/users/ramdog/events{/privacy}","received_events_url":"https://api.github.com/users/ramdog/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ramdog/thrashtown","description":"A simple surf session journal","fork":false,"url":"https://api.github.com/repos/ramdog/thrashtown","forks_url":"https://api.github.com/repos/ramdog/thrashtown/forks","keys_url":"https://api.github.com/repos/ramdog/thrashtown/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramdog/thrashtown/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramdog/thrashtown/teams","hooks_url":"https://api.github.com/repos/ramdog/thrashtown/hooks","issue_events_url":"https://api.github.com/repos/ramdog/thrashtown/issues/events{/number}","events_url":"https://api.github.com/repos/ramdog/thrashtown/events","assignees_url":"https://api.github.com/repos/ramdog/thrashtown/assignees{/user}","branches_url":"https://api.github.com/repos/ramdog/thrashtown/branches{/branch}","tags_url":"https://api.github.com/repos/ramdog/thrashtown/tags","blobs_url":"https://api.github.com/repos/ramdog/thrashtown/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramdog/thrashtown/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramdog/thrashtown/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramdog/thrashtown/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramdog/thrashtown/statuses/{sha}","languages_url":"https://api.github.com/repos/ramdog/thrashtown/languages","stargazers_url":"https://api.github.com/repos/ramdog/thrashtown/stargazers","contributors_url":"https://api.github.com/repos/ramdog/thrashtown/contributors","subscribers_url":"https://api.github.com/repos/ramdog/thrashtown/subscribers","subscription_url":"https://api.github.com/repos/ramdog/thrashtown/subscription","commits_url":"https://api.github.com/repos/ramdog/thrashtown/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramdog/thrashtown/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramdog/thrashtown/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramdog/thrashtown/issues/comments{/number}","contents_url":"https://api.github.com/repos/ramdog/thrashtown/contents/{+path}","compare_url":"https://api.github.com/repos/ramdog/thrashtown/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramdog/thrashtown/merges","archive_url":"https://api.github.com/repos/ramdog/thrashtown/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramdog/thrashtown/downloads","issues_url":"https://api.github.com/repos/ramdog/thrashtown/issues{/number}","pulls_url":"https://api.github.com/repos/ramdog/thrashtown/pulls{/number}","milestones_url":"https://api.github.com/repos/ramdog/thrashtown/milestones{/number}","notifications_url":"https://api.github.com/repos/ramdog/thrashtown/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramdog/thrashtown/labels{/name}","releases_url":"https://api.github.com/repos/ramdog/thrashtown/releases{/id}","created_at":"2014-05-18T03:49:56Z","updated_at":"2015-05-06T03:18:17Z","pushed_at":"2015-06-20T15:44:59Z","git_url":"git://github.com/ramdog/thrashtown.git","ssh_url":"git@github.com:ramdog/thrashtown.git","clone_url":"https://github.com/ramdog/thrashtown.git","svn_url":"https://github.com/ramdog/thrashtown","homepage":"http://www.thrashtown.com/","size":1514,"stargazers_count":38,"watchers_count":38,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":2,"forks":2,"open_issues":2,"watchers":38,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ramdog/thrashtown/pulls/30"},"html":{"href":"https://github.com/ramdog/thrashtown/pull/30"},"issue":{"href":"https://api.github.com/repos/ramdog/thrashtown/issues/30"},"comments":{"href":"https://api.github.com/repos/ramdog/thrashtown/issues/30/comments"},"review_comments":{"href":"https://api.github.com/repos/ramdog/thrashtown/pulls/30/comments"},"review_comment":{"href":"https://api.github.com/repos/ramdog/thrashtown/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ramdog/thrashtown/pulls/30/commits"},"statuses":{"href":"https://api.github.com/repos/ramdog/thrashtown/statuses/8688ae623e28f612c7ef5839b9c4d7f52d292f8e"}}}}