Hi all,
I'm running into an issue with Angular (1.0.4) and its URL handling/rewriting. I'm currently implementing Angular components in a pretty big application with a lot of legacy (JQuery-based) Javascript. For example, it uses anchors to provide deeplinks to tabs. However, Angular rewrites these anchors, appending '/'. So #anchor gets rewritten to #/anchor. I can prevent this rewriting by configuring a hashPrefix ('!'), but this results in the following error:
Error: Invalid url "url#anchor", missing hash prefix "!" !
at Error (<anonymous>)
at Object.LocationHashbangUrl.$$parse (/js/angular.js:5058:13)
at Object.LocationHashbangUrl (/js/angular.js:5097:8)
at $LocationProvider.$get (/js/angular.js:5423:19)
at Object.invoke (/js/angular.js:2820:28)
at /js/angular.js:2658:37
at getService (/js/angular.js:2780:39)
at Object.invoke (/js/angular.js:2798:13)
at /js/angular.js:2658:37
at getService (/js/angular.js:2780:39)
At which point I'm lost. Is there any way to prevent AngularJS from rewriting URLs?