I have made some investigation and found function ` UrlRouter.prototype.href `, in this function there is line ` url = appendBasePath(url, isHtml5, options.absolute, cfg.baseHref());` which add some wrong baseHref to main url.
My solution was to rewrite **_baseHref**, It was correct?:
angular: 1.7.8 @uirouter/angularjs: 1.0.22
my routes are like:
<a href="" ui-sref="mystate">Link</a>
Expected Result:<a href="/some/location" ui-sref="mystate">Link</a>
But:
<a href="/add-wrong-url/some/location" ui-sref="mystate">Link</a>