{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/2357","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2357/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2357/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2357/events","html_url":"https://github.com/angular-ui/ui-router/issues/2357","id":115047883,"number":2357,"title":"ui-router unexpectedly cuts href value in a <base> tag","user":{"login":"TheProdigyFilippo","id":10642820,"avatar_url":"https://avatars.githubusercontent.com/u/10642820?v=3","gravatar_id":"","url":"https://api.github.com/users/TheProdigyFilippo","html_url":"https://github.com/TheProdigyFilippo","followers_url":"https://api.github.com/users/TheProdigyFilippo/followers","following_url":"https://api.github.com/users/TheProdigyFilippo/following{/other_user}","gists_url":"https://api.github.com/users/TheProdigyFilippo/gists{/gist_id}","starred_url":"https://api.github.com/users/TheProdigyFilippo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/TheProdigyFilippo/subscriptions","organizations_url":"https://api.github.com/users/TheProdigyFilippo/orgs","repos_url":"https://api.github.com/users/TheProdigyFilippo/repos","events_url":"https://api.github.com/users/TheProdigyFilippo/events{/privacy}","received_events_url":"https://api.github.com/users/TheProdigyFilippo/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/angular-ui/ui-router/labels/bug","name":"bug","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-11-04T13:02:15Z","updated_at":"2015-11-06T20:42:59Z","closed_at":null,"body":"Hello,\r\n\r\nDuring my work on making angular app SEO friendly and replacing '#' with html5mode, I've noticed that ui-router cuts base href's last letter resulting in unusable application. For example when we set\r\n```html\r\n<base href=\"/application\">\r\n```\r\nhyperlinks `<a ui-sref=\"someState\"` results in `http://domain/applicatio/someState` instead of `http://domain/application/someState`. It eats 'n'. Generaly it eats last letter no matter what we have in href.\r\n\r\nExample available in plunkr: http://plnkr.co/edit/Gl7hVXA64ssfunHCt7ib?p=preview\r\n"},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/154526705","html_url":"https://github.com/angular-ui/ui-router/issues/2357#issuecomment-154526705","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/2357","id":154526705,"user":{"login":"eddiemonge","id":127535,"avatar_url":"https://avatars.githubusercontent.com/u/127535?v=3","gravatar_id":"","url":"https://api.github.com/users/eddiemonge","html_url":"https://github.com/eddiemonge","followers_url":"https://api.github.com/users/eddiemonge/followers","following_url":"https://api.github.com/users/eddiemonge/following{/other_user}","gists_url":"https://api.github.com/users/eddiemonge/gists{/gist_id}","starred_url":"https://api.github.com/users/eddiemonge/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eddiemonge/subscriptions","organizations_url":"https://api.github.com/users/eddiemonge/orgs","repos_url":"https://api.github.com/users/eddiemonge/repos","events_url":"https://api.github.com/users/eddiemonge/events{/privacy}","received_events_url":"https://api.github.com/users/eddiemonge/received_events","type":"User","site_admin":false},"created_at":"2015-11-06T20:42:59Z","updated_at":"2015-11-06T20:42:59Z","body":"Seems to be because of this: https://github.com/angular-ui/ui-router/blob/master/src/urlRouter.js#L274\r\nDon't know why its chopping off the last character. `isHtml5` isn't adding a character here so not sure. @christopherthielen is this fixed or avoided in 1.0?"}}