{"action":"created","comment":{"url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/comments/31775274","id":31775274,"diff_hunk":"@@ -6,7 +6,7 @@ public function onBeforeInit() {\n \t\t$host = GlobalNavSiteTreeExtension::get_toolbar_hostname();\n \t\tif (\n \t\t\t\t(isset($_REQUEST['regenerate_nav']) || isset($_REQUEST['flush'])) && \n-\t\t\t\t$host == Director::absoluteBaseURL() && ","path":"code/GlobalNavControllerExtension.php","position":4,"original_position":4,"commit_id":"8608c997603e69696645038117d5d5d10abffbfc","original_commit_id":"8608c997603e69696645038117d5d5d10abffbfc","user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"body":"The reason this broke on local was that //localhost/ssorg was appearing in the global-nav.html and being compared to the local hostname (//localhost) and of course wasn't matching.","created_at":"2015-06-04T23:07:57Z","updated_at":"2015-06-04T23:07:57Z","html_url":"https://github.com/silverstripe/silverstripe-globaltoolbar/pull/25#discussion_r31775274","pull_request_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/25","_links":{"self":{"href":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/comments/31775274"},"html":{"href":"https://github.com/silverstripe/silverstripe-globaltoolbar/pull/25#discussion_r31775274"},"pull_request":{"href":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/25"}}},"pull_request":{"url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/25","id":36986936,"html_url":"https://github.com/silverstripe/silverstripe-globaltoolbar/pull/25","diff_url":"https://github.com/silverstripe/silverstripe-globaltoolbar/pull/25.diff","patch_url":"https://github.com/silverstripe/silverstripe-globaltoolbar/pull/25.patch","issue_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/issues/25","number":25,"state":"open","locked":false,"title":"BUG Prevent double toolbar appearing on local dev","user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"body":"And release 2.0.7 :D","created_at":"2015-06-04T22:59:39Z","updated_at":"2015-06-04T23:07:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ce015c43f067ff2f559d72b45074012e984da96e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/25/commits","review_comments_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/25/comments","review_comment_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/comments{/number}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/issues/25/comments","statuses_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/statuses/8608c997603e69696645038117d5d5d10abffbfc","head":{"label":"tractorcow:pulls/2.0/fix-local-dev","ref":"pulls/2.0/fix-local-dev","sha":"8608c997603e69696645038117d5d5d10abffbfc","user":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"repo":{"id":23413501,"name":"silverstripe-globaltoolbar","full_name":"tractorcow/silverstripe-globaltoolbar","owner":{"login":"tractorcow","id":936064,"avatar_url":"https://avatars.githubusercontent.com/u/936064?v=3","gravatar_id":"","url":"https://api.github.com/users/tractorcow","html_url":"https://github.com/tractorcow","followers_url":"https://api.github.com/users/tractorcow/followers","following_url":"https://api.github.com/users/tractorcow/following{/other_user}","gists_url":"https://api.github.com/users/tractorcow/gists{/gist_id}","starred_url":"https://api.github.com/users/tractorcow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tractorcow/subscriptions","organizations_url":"https://api.github.com/users/tractorcow/orgs","repos_url":"https://api.github.com/users/tractorcow/repos","events_url":"https://api.github.com/users/tractorcow/events{/privacy}","received_events_url":"https://api.github.com/users/tractorcow/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tractorcow/silverstripe-globaltoolbar","description":"Embeddable toolbar showing at the top of *.silverstripe.org community sites","fork":true,"url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar","forks_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/forks","keys_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/teams","hooks_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/hooks","issue_events_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/issues/events{/number}","events_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/events","assignees_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/assignees{/user}","branches_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/branches{/branch}","tags_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/tags","blobs_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/git/refs{/sha}","trees_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/statuses/{sha}","languages_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/languages","stargazers_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/stargazers","contributors_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/contributors","subscribers_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/subscribers","subscription_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/subscription","commits_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/commits{/sha}","git_commits_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/git/commits{/sha}","comments_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/comments{/number}","issue_comment_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/issues/comments{/number}","contents_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/contents/{+path}","compare_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/merges","archive_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/downloads","issues_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/issues{/number}","pulls_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/pulls{/number}","milestones_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/milestones{/number}","notifications_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/labels{/name}","releases_url":"https://api.github.com/repos/tractorcow/silverstripe-globaltoolbar/releases{/id}","created_at":"2014-08-28T03:05:40Z","updated_at":"2014-08-27T05:52:07Z","pushed_at":"2015-06-04T22:54:49Z","git_url":"git://github.com/tractorcow/silverstripe-globaltoolbar.git","ssh_url":"git@github.com:tractorcow/silverstripe-globaltoolbar.git","clone_url":"https://github.com/tractorcow/silverstripe-globaltoolbar.git","svn_url":"https://github.com/tractorcow/silverstripe-globaltoolbar","homepage":null,"size":380,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"silverstripe:2.0","ref":"2.0","sha":"cd20eabf1537b99d52c7655ef2e7b7aa0d9af530","user":{"login":"silverstripe","id":379348,"avatar_url":"https://avatars.githubusercontent.com/u/379348?v=3","gravatar_id":"","url":"https://api.github.com/users/silverstripe","html_url":"https://github.com/silverstripe","followers_url":"https://api.github.com/users/silverstripe/followers","following_url":"https://api.github.com/users/silverstripe/following{/other_user}","gists_url":"https://api.github.com/users/silverstripe/gists{/gist_id}","starred_url":"https://api.github.com/users/silverstripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverstripe/subscriptions","organizations_url":"https://api.github.com/users/silverstripe/orgs","repos_url":"https://api.github.com/users/silverstripe/repos","events_url":"https://api.github.com/users/silverstripe/events{/privacy}","received_events_url":"https://api.github.com/users/silverstripe/received_events","type":"Organization","site_admin":false},"repo":{"id":8773680,"name":"silverstripe-globaltoolbar","full_name":"silverstripe/silverstripe-globaltoolbar","owner":{"login":"silverstripe","id":379348,"avatar_url":"https://avatars.githubusercontent.com/u/379348?v=3","gravatar_id":"","url":"https://api.github.com/users/silverstripe","html_url":"https://github.com/silverstripe","followers_url":"https://api.github.com/users/silverstripe/followers","following_url":"https://api.github.com/users/silverstripe/following{/other_user}","gists_url":"https://api.github.com/users/silverstripe/gists{/gist_id}","starred_url":"https://api.github.com/users/silverstripe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/silverstripe/subscriptions","organizations_url":"https://api.github.com/users/silverstripe/orgs","repos_url":"https://api.github.com/users/silverstripe/repos","events_url":"https://api.github.com/users/silverstripe/events{/privacy}","received_events_url":"https://api.github.com/users/silverstripe/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/silverstripe/silverstripe-globaltoolbar","description":"Embeddable toolbar showing at the top of *.silverstripe.org community sites","fork":false,"url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar","forks_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/forks","keys_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/keys{/key_id}","collaborators_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/teams","hooks_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/hooks","issue_events_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/issues/events{/number}","events_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/events","assignees_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/assignees{/user}","branches_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/branches{/branch}","tags_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/tags","blobs_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/git/refs{/sha}","trees_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/git/trees{/sha}","statuses_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/statuses/{sha}","languages_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/languages","stargazers_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/stargazers","contributors_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/contributors","subscribers_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/subscribers","subscription_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/subscription","commits_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/commits{/sha}","git_commits_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/git/commits{/sha}","comments_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/comments{/number}","issue_comment_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/issues/comments{/number}","contents_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/contents/{+path}","compare_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/compare/{base}...{head}","merges_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/merges","archive_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/downloads","issues_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/issues{/number}","pulls_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls{/number}","milestones_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/milestones{/number}","notifications_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/labels{/name}","releases_url":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/releases{/id}","created_at":"2013-03-14T11:11:05Z","updated_at":"2015-04-28T00:59:05Z","pushed_at":"2015-06-04T22:59:40Z","git_url":"git://github.com/silverstripe/silverstripe-globaltoolbar.git","ssh_url":"git@github.com:silverstripe/silverstripe-globaltoolbar.git","clone_url":"https://github.com/silverstripe/silverstripe-globaltoolbar.git","svn_url":"https://github.com/silverstripe/silverstripe-globaltoolbar","homepage":null,"size":1347,"stargazers_count":3,"watchers_count":3,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":9,"mirror_url":null,"open_issues_count":4,"forks":9,"open_issues":4,"watchers":3,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/25"},"html":{"href":"https://github.com/silverstripe/silverstripe-globaltoolbar/pull/25"},"issue":{"href":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/issues/25"},"comments":{"href":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/issues/25/comments"},"review_comments":{"href":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/25/comments"},"review_comment":{"href":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/pulls/25/commits"},"statuses":{"href":"https://api.github.com/repos/silverstripe/silverstripe-globaltoolbar/statuses/8608c997603e69696645038117d5d5d10abffbfc"}}}}