{"action":"created","issue":{"url":"https://api.github.com/repos/angular/router/issues/280","labels_url":"https://api.github.com/repos/angular/router/issues/280/labels{/name}","comments_url":"https://api.github.com/repos/angular/router/issues/280/comments","events_url":"https://api.github.com/repos/angular/router/issues/280/events","html_url":"https://github.com/angular/router/issues/280","id":70551148,"number":280,"title":"Empty href click causes redirect to fire","user":{"login":"BrianGenisio","id":137387,"avatar_url":"https://avatars.githubusercontent.com/u/137387?v=3","gravatar_id":"","url":"https://api.github.com/users/BrianGenisio","html_url":"https://github.com/BrianGenisio","followers_url":"https://api.github.com/users/BrianGenisio/followers","following_url":"https://api.github.com/users/BrianGenisio/following{/other_user}","gists_url":"https://api.github.com/users/BrianGenisio/gists{/gist_id}","starred_url":"https://api.github.com/users/BrianGenisio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/BrianGenisio/subscriptions","organizations_url":"https://api.github.com/users/BrianGenisio/orgs","repos_url":"https://api.github.com/users/BrianGenisio/repos","events_url":"https://api.github.com/users/BrianGenisio/events{/privacy}","received_events_url":"https://api.github.com/users/BrianGenisio/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/router/labels/type:%20bug","name":"type: bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-04-24T00:35:11Z","updated_at":"2015-09-01T13:52:08Z","closed_at":null,"body":"I have some routes:\r\n\r\n```js\r\n$router.config([\r\n    { path: '/',              redirectTo: '/workshops' },\r\n    { path: '/workshops',     component:  'workshops' },\r\n    // more routes\r\n]);\r\n```\r\n\r\nInside another component, there is a link (produced by angular-bootstrap tabset) with an empty `href`:\r\n\r\n```html\r\n<a href ng-click=\"select()\"></a>\r\n```\r\n\r\nClicking on this tab causes the `anchorLinkDirective` click to fire, which maps the empty href to \"/\" and causes the redirection to '/workshops' to happen.\r\n\r\nShould the `anchorLinkDirective` return when the [href is empty?](https://github.com/angular/router/blob/3063def605da700c6bb841c6cd25970344a6b954/dist/router.es5.js#L340)."},"comment":{"url":"https://api.github.com/repos/angular/router/issues/comments/136729416","html_url":"https://github.com/angular/router/issues/280#issuecomment-136729416","issue_url":"https://api.github.com/repos/angular/router/issues/280","id":136729416,"user":{"login":"csgruenebe","id":9586869,"avatar_url":"https://avatars.githubusercontent.com/u/9586869?v=3","gravatar_id":"","url":"https://api.github.com/users/csgruenebe","html_url":"https://github.com/csgruenebe","followers_url":"https://api.github.com/users/csgruenebe/followers","following_url":"https://api.github.com/users/csgruenebe/following{/other_user}","gists_url":"https://api.github.com/users/csgruenebe/gists{/gist_id}","starred_url":"https://api.github.com/users/csgruenebe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/csgruenebe/subscriptions","organizations_url":"https://api.github.com/users/csgruenebe/orgs","repos_url":"https://api.github.com/users/csgruenebe/repos","events_url":"https://api.github.com/users/csgruenebe/events{/privacy}","received_events_url":"https://api.github.com/users/csgruenebe/received_events","type":"User","site_admin":false},"created_at":"2015-09-01T13:52:07Z","updated_at":"2015-09-01T13:52:07Z","body":"I can confirm this exact behaviour. "}}