{"action":"created","comment":{"url":"https://api.github.com/repos/oppia/oppia/pulls/comments/172443935","pull_request_review_id":101457863,"id":172443935,"diff_hunk":"@@ -46,8 +46,8 @@ oppia.controller('Admin', [\n       $scope.statusMessage = statusMessage;\n     };\n \n-    $scope.$watch(function() {\n-      return $window.location.hash;\n-    }, AdminRouterService.showTab);\n+    $scope.$on('$locationChangeSuccess', function() {\n+      AdminRouterService.showTab(location.hash.replace('/', ''));","path":"core/templates/dev/head/pages/admin/Admin.js","position":19,"original_position":19,"commit_id":"18ad35491f85bdc0d33cf4c12751433698092c4f","original_commit_id":"f53c165358c86d0f92be8a73818419bf4dc2797e","user":{"login":"swoopyy","id":11968967,"avatar_url":"https://avatars0.githubusercontent.com/u/11968967?v=4","gravatar_id":"","url":"https://api.github.com/users/swoopyy","html_url":"https://github.com/swoopyy","followers_url":"https://api.github.com/users/swoopyy/followers","following_url":"https://api.github.com/users/swoopyy/following{/other_user}","gists_url":"https://api.github.com/users/swoopyy/gists{/gist_id}","starred_url":"https://api.github.com/users/swoopyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swoopyy/subscriptions","organizations_url":"https://api.github.com/users/swoopyy/orgs","repos_url":"https://api.github.com/users/swoopyy/repos","events_url":"https://api.github.com/users/swoopyy/events{/privacy}","received_events_url":"https://api.github.com/users/swoopyy/received_events","type":"User","site_admin":false},"body":"Tried this:\r\n```\r\n$scope.$watch(function() {\r\n      return $location.hash();\r\n    }, function() {\r\n      AdminRouterService.showTab(location.hash.replace('/', ''));\r\n    });\r\n```\r\nDoesn't work","created_at":"2018-03-06T08:44:16Z","updated_at":"2018-03-06T08:44:16Z","html_url":"https://github.com/oppia/oppia/pull/4777#discussion_r172443935","pull_request_url":"https://api.github.com/repos/oppia/oppia/pulls/4777","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments/172443935"},"html":{"href":"https://github.com/oppia/oppia/pull/4777#discussion_r172443935"},"pull_request":{"href":"https://api.github.com/repos/oppia/oppia/pulls/4777"}},"in_reply_to_id":172407746},"pull_request":{"url":"https://api.github.com/repos/oppia/oppia/pulls/4777","id":172969901,"html_url":"https://github.com/oppia/oppia/pull/4777","diff_url":"https://github.com/oppia/oppia/pull/4777.diff","patch_url":"https://github.com/oppia/oppia/pull/4777.patch","issue_url":"https://api.github.com/repos/oppia/oppia/issues/4777","number":4777,"state":"open","locked":false,"title":"Fixed #4537: Navigating between admin pages on url change","user":{"login":"swoopyy","id":11968967,"avatar_url":"https://avatars0.githubusercontent.com/u/11968967?v=4","gravatar_id":"","url":"https://api.github.com/users/swoopyy","html_url":"https://github.com/swoopyy","followers_url":"https://api.github.com/users/swoopyy/followers","following_url":"https://api.github.com/users/swoopyy/following{/other_user}","gists_url":"https://api.github.com/users/swoopyy/gists{/gist_id}","starred_url":"https://api.github.com/users/swoopyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swoopyy/subscriptions","organizations_url":"https://api.github.com/users/swoopyy/orgs","repos_url":"https://api.github.com/users/swoopyy/repos","events_url":"https://api.github.com/users/swoopyy/events{/privacy}","received_events_url":"https://api.github.com/users/swoopyy/received_events","type":"User","site_admin":false},"body":"#4537 \r\n![](https://media.giphy.com/media/1kIxtVTI8N5oiOkKD3/giphy.gif)","created_at":"2018-03-05T19:56:28Z","updated_at":"2018-03-06T08:46:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"66e263c7e2dc405b82fff25e7e73d677becde671","assignee":{"login":"shubha1593","id":7807557,"avatar_url":"https://avatars1.githubusercontent.com/u/7807557?v=4","gravatar_id":"","url":"https://api.github.com/users/shubha1593","html_url":"https://github.com/shubha1593","followers_url":"https://api.github.com/users/shubha1593/followers","following_url":"https://api.github.com/users/shubha1593/following{/other_user}","gists_url":"https://api.github.com/users/shubha1593/gists{/gist_id}","starred_url":"https://api.github.com/users/shubha1593/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubha1593/subscriptions","organizations_url":"https://api.github.com/users/shubha1593/orgs","repos_url":"https://api.github.com/users/shubha1593/repos","events_url":"https://api.github.com/users/shubha1593/events{/privacy}","received_events_url":"https://api.github.com/users/shubha1593/received_events","type":"User","site_admin":false},"assignees":[{"login":"shubha1593","id":7807557,"avatar_url":"https://avatars1.githubusercontent.com/u/7807557?v=4","gravatar_id":"","url":"https://api.github.com/users/shubha1593","html_url":"https://github.com/shubha1593","followers_url":"https://api.github.com/users/shubha1593/followers","following_url":"https://api.github.com/users/shubha1593/following{/other_user}","gists_url":"https://api.github.com/users/shubha1593/gists{/gist_id}","starred_url":"https://api.github.com/users/shubha1593/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shubha1593/subscriptions","organizations_url":"https://api.github.com/users/shubha1593/orgs","repos_url":"https://api.github.com/users/shubha1593/repos","events_url":"https://api.github.com/users/shubha1593/events{/privacy}","received_events_url":"https://api.github.com/users/shubha1593/received_events","type":"User","site_admin":false}],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/oppia/oppia/pulls/4777/commits","review_comments_url":"https://api.github.com/repos/oppia/oppia/pulls/4777/comments","review_comment_url":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}","comments_url":"https://api.github.com/repos/oppia/oppia/issues/4777/comments","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/18ad35491f85bdc0d33cf4c12751433698092c4f","head":{"label":"swoopyy:admin-tabs-fix","ref":"admin-tabs-fix","sha":"18ad35491f85bdc0d33cf4c12751433698092c4f","user":{"login":"swoopyy","id":11968967,"avatar_url":"https://avatars0.githubusercontent.com/u/11968967?v=4","gravatar_id":"","url":"https://api.github.com/users/swoopyy","html_url":"https://github.com/swoopyy","followers_url":"https://api.github.com/users/swoopyy/followers","following_url":"https://api.github.com/users/swoopyy/following{/other_user}","gists_url":"https://api.github.com/users/swoopyy/gists{/gist_id}","starred_url":"https://api.github.com/users/swoopyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swoopyy/subscriptions","organizations_url":"https://api.github.com/users/swoopyy/orgs","repos_url":"https://api.github.com/users/swoopyy/repos","events_url":"https://api.github.com/users/swoopyy/events{/privacy}","received_events_url":"https://api.github.com/users/swoopyy/received_events","type":"User","site_admin":false},"repo":{"id":123934831,"name":"oppia","full_name":"swoopyy/oppia","owner":{"login":"swoopyy","id":11968967,"avatar_url":"https://avatars0.githubusercontent.com/u/11968967?v=4","gravatar_id":"","url":"https://api.github.com/users/swoopyy","html_url":"https://github.com/swoopyy","followers_url":"https://api.github.com/users/swoopyy/followers","following_url":"https://api.github.com/users/swoopyy/following{/other_user}","gists_url":"https://api.github.com/users/swoopyy/gists{/gist_id}","starred_url":"https://api.github.com/users/swoopyy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/swoopyy/subscriptions","organizations_url":"https://api.github.com/users/swoopyy/orgs","repos_url":"https://api.github.com/users/swoopyy/repos","events_url":"https://api.github.com/users/swoopyy/events{/privacy}","received_events_url":"https://api.github.com/users/swoopyy/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/swoopyy/oppia","description":"Tool for collaboratively building interactive lessons.","fork":true,"url":"https://api.github.com/repos/swoopyy/oppia","forks_url":"https://api.github.com/repos/swoopyy/oppia/forks","keys_url":"https://api.github.com/repos/swoopyy/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/swoopyy/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/swoopyy/oppia/teams","hooks_url":"https://api.github.com/repos/swoopyy/oppia/hooks","issue_events_url":"https://api.github.com/repos/swoopyy/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/swoopyy/oppia/events","assignees_url":"https://api.github.com/repos/swoopyy/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/swoopyy/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/swoopyy/oppia/tags","blobs_url":"https://api.github.com/repos/swoopyy/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/swoopyy/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/swoopyy/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/swoopyy/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/swoopyy/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/swoopyy/oppia/languages","stargazers_url":"https://api.github.com/repos/swoopyy/oppia/stargazers","contributors_url":"https://api.github.com/repos/swoopyy/oppia/contributors","subscribers_url":"https://api.github.com/repos/swoopyy/oppia/subscribers","subscription_url":"https://api.github.com/repos/swoopyy/oppia/subscription","commits_url":"https://api.github.com/repos/swoopyy/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/swoopyy/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/swoopyy/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/swoopyy/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/swoopyy/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/swoopyy/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/swoopyy/oppia/merges","archive_url":"https://api.github.com/repos/swoopyy/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/swoopyy/oppia/downloads","issues_url":"https://api.github.com/repos/swoopyy/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/swoopyy/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/swoopyy/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/swoopyy/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/swoopyy/oppia/labels{/name}","releases_url":"https://api.github.com/repos/swoopyy/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/swoopyy/oppia/deployments","created_at":"2018-03-05T14:53:49Z","updated_at":"2018-03-05T14:53:56Z","pushed_at":"2018-03-06T07:30:29Z","git_url":"git://github.com/swoopyy/oppia.git","ssh_url":"git@github.com:swoopyy/oppia.git","clone_url":"https://github.com/swoopyy/oppia.git","svn_url":"https://github.com/swoopyy/oppia","homepage":"https://www.oppia.org","size":101157,"stargazers_count":0,"watchers_count":0,"language":"Python","has_issues":false,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":0,"open_issues":0,"watchers":0,"default_branch":"develop"}},"base":{"label":"oppia:develop","ref":"develop","sha":"54f978a32248fd16de44689e19d9f83fadc06841","user":{"login":"oppia","id":11620230,"avatar_url":"https://avatars1.githubusercontent.com/u/11620230?v=4","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"repo":{"id":40687563,"name":"oppia","full_name":"oppia/oppia","owner":{"login":"oppia","id":11620230,"avatar_url":"https://avatars1.githubusercontent.com/u/11620230?v=4","gravatar_id":"","url":"https://api.github.com/users/oppia","html_url":"https://github.com/oppia","followers_url":"https://api.github.com/users/oppia/followers","following_url":"https://api.github.com/users/oppia/following{/other_user}","gists_url":"https://api.github.com/users/oppia/gists{/gist_id}","starred_url":"https://api.github.com/users/oppia/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oppia/subscriptions","organizations_url":"https://api.github.com/users/oppia/orgs","repos_url":"https://api.github.com/users/oppia/repos","events_url":"https://api.github.com/users/oppia/events{/privacy}","received_events_url":"https://api.github.com/users/oppia/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/oppia/oppia","description":"Tool for collaboratively building interactive lessons.","fork":false,"url":"https://api.github.com/repos/oppia/oppia","forks_url":"https://api.github.com/repos/oppia/oppia/forks","keys_url":"https://api.github.com/repos/oppia/oppia/keys{/key_id}","collaborators_url":"https://api.github.com/repos/oppia/oppia/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/oppia/oppia/teams","hooks_url":"https://api.github.com/repos/oppia/oppia/hooks","issue_events_url":"https://api.github.com/repos/oppia/oppia/issues/events{/number}","events_url":"https://api.github.com/repos/oppia/oppia/events","assignees_url":"https://api.github.com/repos/oppia/oppia/assignees{/user}","branches_url":"https://api.github.com/repos/oppia/oppia/branches{/branch}","tags_url":"https://api.github.com/repos/oppia/oppia/tags","blobs_url":"https://api.github.com/repos/oppia/oppia/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/oppia/oppia/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/oppia/oppia/git/refs{/sha}","trees_url":"https://api.github.com/repos/oppia/oppia/git/trees{/sha}","statuses_url":"https://api.github.com/repos/oppia/oppia/statuses/{sha}","languages_url":"https://api.github.com/repos/oppia/oppia/languages","stargazers_url":"https://api.github.com/repos/oppia/oppia/stargazers","contributors_url":"https://api.github.com/repos/oppia/oppia/contributors","subscribers_url":"https://api.github.com/repos/oppia/oppia/subscribers","subscription_url":"https://api.github.com/repos/oppia/oppia/subscription","commits_url":"https://api.github.com/repos/oppia/oppia/commits{/sha}","git_commits_url":"https://api.github.com/repos/oppia/oppia/git/commits{/sha}","comments_url":"https://api.github.com/repos/oppia/oppia/comments{/number}","issue_comment_url":"https://api.github.com/repos/oppia/oppia/issues/comments{/number}","contents_url":"https://api.github.com/repos/oppia/oppia/contents/{+path}","compare_url":"https://api.github.com/repos/oppia/oppia/compare/{base}...{head}","merges_url":"https://api.github.com/repos/oppia/oppia/merges","archive_url":"https://api.github.com/repos/oppia/oppia/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/oppia/oppia/downloads","issues_url":"https://api.github.com/repos/oppia/oppia/issues{/number}","pulls_url":"https://api.github.com/repos/oppia/oppia/pulls{/number}","milestones_url":"https://api.github.com/repos/oppia/oppia/milestones{/number}","notifications_url":"https://api.github.com/repos/oppia/oppia/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/oppia/oppia/labels{/name}","releases_url":"https://api.github.com/repos/oppia/oppia/releases{/id}","deployments_url":"https://api.github.com/repos/oppia/oppia/deployments","created_at":"2015-08-14T00:16:14Z","updated_at":"2018-03-05T21:32:28Z","pushed_at":"2018-03-06T08:36:37Z","git_url":"git://github.com/oppia/oppia.git","ssh_url":"git@github.com:oppia/oppia.git","clone_url":"https://github.com/oppia/oppia.git","svn_url":"https://github.com/oppia/oppia","homepage":"https://www.oppia.org","size":101077,"stargazers_count":595,"watchers_count":595,"language":"Python","has_issues":true,"has_projects":true,"has_downloads":false,"has_wiki":true,"has_pages":false,"forks_count":588,"mirror_url":null,"archived":false,"open_issues_count":316,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":588,"open_issues":316,"watchers":595,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/oppia/oppia/pulls/4777"},"html":{"href":"https://github.com/oppia/oppia/pull/4777"},"issue":{"href":"https://api.github.com/repos/oppia/oppia/issues/4777"},"comments":{"href":"https://api.github.com/repos/oppia/oppia/issues/4777/comments"},"review_comments":{"href":"https://api.github.com/repos/oppia/oppia/pulls/4777/comments"},"review_comment":{"href":"https://api.github.com/repos/oppia/oppia/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/oppia/oppia/pulls/4777/commits"},"statuses":{"href":"https://api.github.com/repos/oppia/oppia/statuses/18ad35491f85bdc0d33cf4c12751433698092c4f"}},"author_association":"NONE"}}
{"actor":{"display_login":"swoopyy"}}