{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/14315","repository_url":"https://api.github.com/repos/angular/angular.js","labels_url":"https://api.github.com/repos/angular/angular.js/issues/14315/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/14315/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/14315/events","html_url":"https://github.com/angular/angular.js/issues/14315","id":143336735,"number":14315,"title":"$anchorScroll breaks anchor links with html5mode enabled","user":{"login":"lookfirst","id":85355,"avatar_url":"https://avatars.githubusercontent.com/u/85355?v=3","gravatar_id":"","url":"https://api.github.com/users/lookfirst","html_url":"https://github.com/lookfirst","followers_url":"https://api.github.com/users/lookfirst/followers","following_url":"https://api.github.com/users/lookfirst/following{/other_user}","gists_url":"https://api.github.com/users/lookfirst/gists{/gist_id}","starred_url":"https://api.github.com/users/lookfirst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lookfirst/subscriptions","organizations_url":"https://api.github.com/users/lookfirst/orgs","repos_url":"https://api.github.com/users/lookfirst/repos","events_url":"https://api.github.com/users/lookfirst/events{/privacy}","received_events_url":"https://api.github.com/users/lookfirst/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular.js/labels/component:%20misc%20core","name":"component: misc core","color":"fef2c0"},{"url":"https://api.github.com/repos/angular/angular.js/labels/frequency:%20low","name":"frequency: low","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular.js/labels/needs:%20investigation","name":"needs: investigation","color":"444444"},{"url":"https://api.github.com/repos/angular/angular.js/labels/severity:%20broken%20expected%20use","name":"severity: broken expected use","color":"fbda00"},{"url":"https://api.github.com/repos/angular/angular.js/labels/type:%20bug","name":"type: bug","color":"000000"}],"state":"open","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular.js/milestones/27","html_url":"https://github.com/angular/angular.js/milestones/Backlog","labels_url":"https://api.github.com/repos/angular/angular.js/milestones/27/labels","id":489171,"number":27,"title":"Backlog","description":"Holds the backlog of issues and pull requests that have been triaged.\r\n\r\nBefore assigning items to this milestone they should be labelled, at the very least with the correct \"type\" label (i.e. \"issue\", \"pr\", \"bug\", \"regression\", \"chore\", \"docs\", etc).  Preferably you should also check for duplicate issues/PRs, note CLA status and assign \"complexity\" and \"impact\" labels too.","creator":{"login":"IgorMinar","id":216296,"avatar_url":"https://avatars.githubusercontent.com/u/216296?v=3","gravatar_id":"","url":"https://api.github.com/users/IgorMinar","html_url":"https://github.com/IgorMinar","followers_url":"https://api.github.com/users/IgorMinar/followers","following_url":"https://api.github.com/users/IgorMinar/following{/other_user}","gists_url":"https://api.github.com/users/IgorMinar/gists{/gist_id}","starred_url":"https://api.github.com/users/IgorMinar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/IgorMinar/subscriptions","organizations_url":"https://api.github.com/users/IgorMinar/orgs","repos_url":"https://api.github.com/users/IgorMinar/repos","events_url":"https://api.github.com/users/IgorMinar/events{/privacy}","received_events_url":"https://api.github.com/users/IgorMinar/received_events","type":"User","site_admin":false},"open_issues":604,"closed_issues":1185,"state":"open","created_at":"2013-11-18T23:30:35Z","updated_at":"2016-04-08T18:01:25Z","due_on":null,"closed_at":null},"comments":9,"created_at":"2016-03-24T19:22:12Z","updated_at":"2016-04-08T18:10:33Z","closed_at":null,"body":"I boiled this problem down to a very simple test case included below. Apologies if this has been reported before, but I did search around first for this. \r\n\r\nJust by simply injecting `$anchorScroll` and not even calling it anywhere in the code, all anchor href's are broken. The value in the location bar changes, but navigation to the new link does not work.\r\n\r\nDisabling html5Mode works.\r\n\r\n```\r\n<!DOCTYPE html>\r\n<html lang=\"en\">\r\n\t<head>\r\n\t\t<meta charset=\"utf-8\" />\r\n\t\t<title>boo</title>\r\n\t\t<script src=\"https://ajax.googleapis.com/ajax/libs/angularjs/1.5.2/angular.min.js\"></script>\r\n\t\t<base href=\"/\">\r\n\t</head>\r\n\r\n\t<body ng-controller=\"MyCtrl\">\r\n\r\n\t\t<a href=\"/nogo\">GOOOOOOO</a>\r\n\r\n\t\t<script type=\"text/javascript\">\r\n\t\t\tangular.element(document).ready(function() {\t\r\n\t\t\t\tvar appModule = angular.module('appModule', []);\r\n\t\r\n\t\t\t\tappModule.config(['$locationProvider', function($locationProvider) {\r\n\t\t\t\t\t$locationProvider.html5Mode({\r\n\t\t\t\t\t\tenabled: true\r\n\t\t\t\t\t});\r\n\t\t\t\t}]);\r\n\r\n\t\t\t\tappModule.controller('MyCtrl', ['$anchorScroll', function($anchorScroll) {}]);\r\n/*\r\n\t\t\t\tappModule.controller('MyCtrl', function() {});\r\n*/\r\n\r\n\t\t\t\treturn angular.bootstrap(document.body, [appModule.name], {\r\n\t\t\t\t\tstrictDi: true\r\n\t\t\t\t});\r\n\t\t\t});\r\n\t\t</script>\r\n\t</body>\r\n</html>\r\n```"},"comment":{"url":"https://api.github.com/repos/angular/angular.js/issues/comments/207541872","html_url":"https://github.com/angular/angular.js/issues/14315#issuecomment-207541872","issue_url":"https://api.github.com/repos/angular/angular.js/issues/14315","id":207541872,"user":{"login":"lookfirst","id":85355,"avatar_url":"https://avatars.githubusercontent.com/u/85355?v=3","gravatar_id":"","url":"https://api.github.com/users/lookfirst","html_url":"https://github.com/lookfirst","followers_url":"https://api.github.com/users/lookfirst/followers","following_url":"https://api.github.com/users/lookfirst/following{/other_user}","gists_url":"https://api.github.com/users/lookfirst/gists{/gist_id}","starred_url":"https://api.github.com/users/lookfirst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lookfirst/subscriptions","organizations_url":"https://api.github.com/users/lookfirst/orgs","repos_url":"https://api.github.com/users/lookfirst/repos","events_url":"https://api.github.com/users/lookfirst/events{/privacy}","received_events_url":"https://api.github.com/users/lookfirst/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T18:10:33Z","updated_at":"2016-04-08T18:10:33Z","body":"What a mess. :cry: "}}