Right click ui-sref links / new tab does not work as expected

This is a pretty standard way to right-click or click on a link and open that link in a new tab. Angular ui router ui-sref doesn't honor this at all. Any ideas on how to do this? It has to be inside the frame, I cannot make all my links differently.

+3


source to share


1 answer


This was a bug in UI Router since Angular 1.3 that has been resolved.

<a ui-sref="test"></a>

      

allowed

<a href="/test"></a>

      



instead

<a href="#/test"></a>

      

They contacted and fixed it here: https://github.com/angular-ui/ui-router/issues/1408

Download the latest UI-Router ( https://angular-ui.github.io/ui-router/ ) and update your project files to resolve this issue.

+2


source







All Articles