Change rewriteLinks to false

Set `$locationProvider.html5Mode` rewriteLinks to false,
otherwise the anchor links cannot function normally.

Change-Id: I28f286eace386b5300fe195eb5daa2f63e6a7b8f
This commit is contained in:
Xinni Ge 2017-11-30 23:26:30 +09:00 committed by Kazunori Shinohara
parent 9110688600
commit dbbba16250
2 changed files with 3 additions and 2 deletions

View File

@ -16,7 +16,8 @@
.config(['$locationProvider', function($locationProvider) {
$locationProvider.html5Mode({
enabled: true,
requireBase: false
requireBase: false,
rewriteLinks: false,
});
}])
.config(['$provide', '$windowProvider', function($provide, $windowProvider){

View File

@ -35,7 +35,7 @@
it('should set html5 mode', function() {
expect($locationProvider.html5Mode)
.toHaveBeenCalledWith({ enabled: true, requireBase: false });
.toHaveBeenCalledWith({ enabled: true, requireBase: false, rewriteLinks: false });
});
});