{"action":"created","issue":{"url":"https://api.github.com/repos/angular/angular/issues/6506","repository_url":"https://api.github.com/repos/angular/angular","labels_url":"https://api.github.com/repos/angular/angular/issues/6506/labels{/name}","comments_url":"https://api.github.com/repos/angular/angular/issues/6506/comments","events_url":"https://api.github.com/repos/angular/angular/issues/6506/events","html_url":"https://github.com/angular/angular/issues/6506","id":126874193,"number":6506,"title":"Angular 2, IE9 & pushState issue!","user":{"login":"andycwk","id":2248787,"avatar_url":"https://avatars.githubusercontent.com/u/2248787?v=3","gravatar_id":"","url":"https://api.github.com/users/andycwk","html_url":"https://github.com/andycwk","followers_url":"https://api.github.com/users/andycwk/followers","following_url":"https://api.github.com/users/andycwk/following{/other_user}","gists_url":"https://api.github.com/users/andycwk/gists{/gist_id}","starred_url":"https://api.github.com/users/andycwk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andycwk/subscriptions","organizations_url":"https://api.github.com/users/andycwk/orgs","repos_url":"https://api.github.com/users/andycwk/repos","events_url":"https://api.github.com/users/andycwk/events{/privacy}","received_events_url":"https://api.github.com/users/andycwk/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular/angular/labels/comp:%20router","name":"comp: router","color":"c7def8"},{"url":"https://api.github.com/repos/angular/angular/labels/effort2:%20medium%20(day)","name":"effort2: medium (day)","color":"bfe5bf"},{"url":"https://api.github.com/repos/angular/angular/labels/P2:%20required","name":"P2: required","color":"fad8c7"},{"url":"https://api.github.com/repos/angular/angular/labels/type:%20bug","name":"type: bug","color":"EEEEEE"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-15T13:39:13Z","updated_at":"2016-02-09T18:44:10Z","closed_at":null,"body":"Hi,\r\n\r\nI'm having some issues with Angular 2, pushState & IE9 as I've documented initially in https://groups.google.com/forum/#!topic/angular/TdCt6KyhwI8 before carrying out much more investigation!\r\n\r\nI've read https://github.com/angular/angular/issues/5792 and attempted to apply the history.js script with mixed results!\r\n\r\nI have had to modify angular2.dev.js locally to return window.History instead of window.history (not a long term solution really!)\r\n\r\nIn Everything but IE9 things work as expected using path location mode - in IE9 history.js takes over and injects urls to look like http://my.app.com/#./dashboard\r\n\r\nBut those hashtag paths are then not recognised by the angular router..!!\r\n\r\nSo I turn on the hash location strategy and that works fine in chrome etc but in IE history.js kicks in and alerts the following..\r\n\r\n>> History.js does not support states with fragment-identifiers (hashes/anchors). \r\n\r\nThe root issue is found in the following code in the router..\r\n\r\n```\r\n    PlatformLocation.prototype.pushState = function(state, title, url) {\r\n        console.log('pushState line 2022');\r\n      this._history.pushState(state, title, url);\r\n      console.log('after push line 2026');\r\n    };\r\n```\r\nIf I comment out the pushState line then everything works.. but of course the url is not updated in the browser window :(\r\n\r\nIt feels a bit like a catch-22 situation!!\r\n\r\na) Is this a bug??\r\nb) Does the Angular team have a compatible IE9 routing solution?\r\n\r\n\r\nHelp!!!\r\n"},"comment":{"url":"https://api.github.com/repos/angular/angular/issues/comments/181998923","html_url":"https://github.com/angular/angular/issues/6506#issuecomment-181998923","issue_url":"https://api.github.com/repos/angular/angular/issues/6506","id":181998923,"user":{"login":"brianaprince","id":10246578,"avatar_url":"https://avatars.githubusercontent.com/u/10246578?v=3","gravatar_id":"","url":"https://api.github.com/users/brianaprince","html_url":"https://github.com/brianaprince","followers_url":"https://api.github.com/users/brianaprince/followers","following_url":"https://api.github.com/users/brianaprince/following{/other_user}","gists_url":"https://api.github.com/users/brianaprince/gists{/gist_id}","starred_url":"https://api.github.com/users/brianaprince/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/brianaprince/subscriptions","organizations_url":"https://api.github.com/users/brianaprince/orgs","repos_url":"https://api.github.com/users/brianaprince/repos","events_url":"https://api.github.com/users/brianaprince/events{/privacy}","received_events_url":"https://api.github.com/users/brianaprince/received_events","type":"User","site_admin":false},"created_at":"2016-02-09T18:44:10Z","updated_at":"2016-02-09T18:44:10Z","body":"So is the Angular 2 team calling this a bug or are they not supporting a shim for IE9?  I have to support IE9 and this affects my routing decisions."}}