Skip to content
This repository was archived by the owner on Apr 12, 2024. It is now read-only.

Wrong generate href #16821

Closed
Zadvornyi opened this issue Jan 23, 2019 · 4 comments
Closed

Wrong generate href #16821

Zadvornyi opened this issue Jan 23, 2019 · 4 comments

Comments

@Zadvornyi
Copy link

I have created an issue (I have migrated for AngularJS 1.6.10 to 1.7.5. After migration almost, all links are broken. A href is not generated.) #16809. The answer was, that it is This is a duplicate of #16734. It will be included in the next release.

However, after updating to new release 1.7.6. I encountered the same bug.

<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>
@frederikprijck
Copy link
Contributor

I might be wrong here, but this looks like to be related to angular-ui, not angularjs ?

@biggieman
Copy link

biggieman commented Jan 23, 2019

You need to remove empty href attribute:
<a ui-sref="app.state1.substate">Link</a>

@Zadvornyi
Copy link
Author

I tried to delete href. It does not work

@Zadvornyi
Copy link
Author

Problem was with @uirouter/angularjs. I have used @uirouter/angularjs": "1.0.21. But solution was downgrate to @uirouter/angularjs": "1.0.18

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants