angular-ui/ui-router — pull request #528 by tgecho (2013-10-25 18:44:02+00:00)
Title: Prepend the baseHref to $state.href() generated urls if it exists.

I have an angular app that is served from a subdirectory. I have a `` 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.

I think this pretty much covers things the various scenarios...