{"action":"opened","issue":{"url":"https://api.github.com/repos/angular/angular.js/issues/12751","labels_url":"https://api.github.com/repos/angular/angular.js/issues/12751/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular.js/issues/12751/comments","events_url":"https://api.github.com/repos/angular/angular.js/issues/12751/events","html_url":"https://github.com/angular/angular.js/issues/12751","id":104743230,"number":12751,"title":"Expose way of differentiating when in html5Mode and in fallback hash","user":{"login":"wesleycho","id":1703387,"avatar_url":"https://avatars.githubusercontent.com/u/1703387?v=3","gravatar_id":"","url":"https://api.github.com/users/wesleycho","html_url":"https://github.com/wesleycho","followers_url":"https://api.github.com/users/wesleycho/followers","following_url":"https://api.github.com/users/wesleycho/following{/other_user}","gists_url":"https://api.github.com/users/wesleycho/gists{/gist_id}","starred_url":"https://api.github.com/users/wesleycho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wesleycho/subscriptions","organizations_url":"https://api.github.com/users/wesleycho/orgs","repos_url":"https://api.github.com/users/wesleycho/repos","events_url":"https://api.github.com/users/wesleycho/events{/privacy}","received_events_url":"https://api.github.com/users/wesleycho/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-09-03T17:20:13Z","updated_at":"2015-09-03T17:20:13Z","closed_at":null,"body":"For IE9, the fallback hash mark is used when `$locationProvider.html5Mode(true)` is set. However, this causes a problem in UI Router as reported in https://github.com/angular-ui/ui-router/issues/2221 where UI Router is unable to differentiate between the two situations, and causes the incorrect URL to be added to the `href`.\r\n\r\nIs it possible to expose information on `$location` about what mode Angular is using? This should probably be backported to 1.2 if this is implemented & possible."}}