I'm having a massive problem with AngularJS routing.
Up until recently everything has been fine with the following route:
$routeProvider.when('/album/:albumId', {
controller: 'albumPageController',
templateUrl: 'views/album.html'
});
使用href:
<a href="/#/album/{{album.id}}">Link</a>
然而,现在所有的斜杠都被编码为%2F
.
因此,当我单击该链接或在浏览器中键入localhost:8000/#/album/1
时,URL将更改为:
I've tried several things to correct this:
使用ng href而不是href,
任何帮助都将不胜感激!