Something really strange is happening in my code right now.
I'm utilizing ng-repeat
to generate multiple elements based on an array of objects, like so:
<a ng-repeat="report in reports" ng-href="#/report?report={{report.id}}+file=0" ></a>
The HTML being rendered appears to be correct, as shown below:
<a ng-repeat="report in reports" ng-href="#/report?report=81+file=0"
class="ng-scope" href="#/report?report=81+file=0">
However, when I click on the link, it redirects me to a URL like this:
[root-url]/index.php#/report?report=84%20file%3D0
What's puzzling is that I actually want to be redirected here instead:
[root-url]/index.php#/report?report=84+file=0
Why are the "+
" and the second "=
" sign getting translated this way, even though they're correct in the link's href attribute? Has anyone encountered this issue before or have any idea what I might be doing wrong?