{"action":"created","issue":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/528","labels_url":"https://api.github.com/repos/angular-ui/ui-router/issues/528/labels{/name}","comments_url":"https://api.github.com/repos/angular-ui/ui-router/issues/528/comments","events_url":"https://api.github.com/repos/angular-ui/ui-router/issues/528/events","html_url":"https://github.com/angular-ui/ui-router/pull/528","id":21608594,"number":528,"title":"Prepend the baseHref to $state.href() generated urls if it exists.","user":{"login":"tgecho","id":49615,"avatar_url":"https://avatars.githubusercontent.com/u/49615?v=3","gravatar_id":"","url":"https://api.github.com/users/tgecho","html_url":"https://github.com/tgecho","followers_url":"https://api.github.com/users/tgecho/followers","following_url":"https://api.github.com/users/tgecho/following{/other_user}","gists_url":"https://api.github.com/users/tgecho/gists{/gist_id}","starred_url":"https://api.github.com/users/tgecho/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tgecho/subscriptions","organizations_url":"https://api.github.com/users/tgecho/orgs","repos_url":"https://api.github.com/users/tgecho/repos","events_url":"https://api.github.com/users/tgecho/events{/privacy}","received_events_url":"https://api.github.com/users/tgecho/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2013-10-25T18:44:02Z","updated_at":"2015-08-05T18:03:53Z","closed_at":"2014-02-17T14:23:36Z","pull_request":{"url":"https://api.github.com/repos/angular-ui/ui-router/pulls/528","html_url":"https://github.com/angular-ui/ui-router/pull/528","diff_url":"https://github.com/angular-ui/ui-router/pull/528.diff","patch_url":"https://github.com/angular-ui/ui-router/pull/528.patch"},"body":"I have an angular app that is served from a subdirectory. I have a `<base href=\"/app/\">` tag, however the urls generated by the `ui-sref` directive and `$state.href()` do not reflect this. The ui-sref links themselves will still work if left clicked, however middle clicking to open in a new tab does not work since the url is missing the contents of the base href.\r\n\r\nI think this pretty much covers things the various scenarios..."},"comment":{"url":"https://api.github.com/repos/angular-ui/ui-router/issues/comments/128093388","html_url":"https://github.com/angular-ui/ui-router/pull/528#issuecomment-128093388","issue_url":"https://api.github.com/repos/angular-ui/ui-router/issues/528","id":128093388,"user":{"login":"samy100","id":3933065,"avatar_url":"https://avatars.githubusercontent.com/u/3933065?v=3","gravatar_id":"","url":"https://api.github.com/users/samy100","html_url":"https://github.com/samy100","followers_url":"https://api.github.com/users/samy100/followers","following_url":"https://api.github.com/users/samy100/following{/other_user}","gists_url":"https://api.github.com/users/samy100/gists{/gist_id}","starred_url":"https://api.github.com/users/samy100/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/samy100/subscriptions","organizations_url":"https://api.github.com/users/samy100/orgs","repos_url":"https://api.github.com/users/samy100/repos","events_url":"https://api.github.com/users/samy100/events{/privacy}","received_events_url":"https://api.github.com/users/samy100/received_events","type":"User","site_admin":false},"created_at":"2015-08-05T18:03:53Z","updated_at":"2015-08-05T18:03:53Z","body":"Is there any option I can turn automatic prefixing of the base URL off? or make it configurable ui-sref-option like \"prefixBase: false\"? Thanks!"}}