We have a Web and Phonegap App, that uses Angular HTML5 Mode in the Web, and, because of Cordova/Phonegaps limitations, HashBang Mode for the mobile Apps. Until shortly we just prefixed all our ng-hrefs with #! and we were good to go for mobile and web. Angular would automatically convert the hashbang urls in the href attributes to html5 urls when resolving.
We updated to Angular 1.5 and noticed weird behaviour: The Hashbang links would work on a full page reload (eg opening a new Tab) but not when clicking on them and opening them in the same page. Angular would just open the current page again and append the hash, without processing it.
I searched the changelog, but did not find any hints on changes in ng-href or $location concerning this issue. How could I design my links so they work in phonegap and the web?