Angular quietly rewrites urls, but this specific case is causing problems for my app. Where would I look if I were trying to patch this particular case in angular?
Will it break a lot of stuff to force angular to behave this way?
Angular quietly rewrites urls, but this specific case is causing problems for my app. Where would I look if I were trying to patch this particular case in angular?
Will it break a lot of stuff to force angular to behave this way?
Directly from source:
https://github.com/angular/angular.js/blob/master/src/Angular.js#L854
Either recompile it, or just find the relevant part in your version of angularjs and change it.
It is caused by encodeURIComponent
which is a native function. The way it is implemented by the browser is possibly standardized. It converts +
to %2B
along with many others.
You should then change your app's behavior.
I figured out the fix from the answer above, all I had to do was go to this line https://github.com/angular/angular.js/blob/master/src/Angular.js#L873
and add a
replace(/%2B/gi, '+').
to the chain. Worked a treat! Thanks @fastreload!!!