Skip to content Skip to sidebar Skip to footer

Angular Slash Gets Encoded

Im having the same issue as this guy: angularjs-slash-after-hashbang-gets-encoded The URL gets encoded an it isn´t routed correctly, it appears to fal to the otherwise in my route

Solution 1:

I finally solved it doing two things:

1.- I added <base href="/"> to index.html 2.- I activated HTML5 mode but without prefix

This way I can use either http://localhost/#/route or http://localhost/route and the URL gets rewritten correctly.

Post a Comment for "Angular Slash Gets Encoded"