angular-ui / ui-router

The de-facto solution to flexible routing with nested views in AngularJS
http://ui-router.github.io/
MIT License
13.56k stars 3.01k forks source link

Wrong generate of href #3759

Closed Zadvornyi closed 4 years ago

Zadvornyi commented 5 years ago

I have migrated from @uirouter/angularjs: 1.0.18 to 1.0.21. After migration almost, all links are broken. A href is not generated correctly.

npm:6.5.0 node: 10.12.0 angular: 1.7.6

<a href="" ui-sref="app.state1.substate">Link</a>
Expected Result:
<a href="/app/state1/substate/" ui-sref="app.state1.substate">Link</a>

But after migration:
<a href="wrong url" ui-sref="app.state1.substate">Link</a>

P.S It does not matter if href="" or href="#"

stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

This does not mean that the issue is invalid. Valid issues may be reopened.

Thank you for your contributions.