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:
parent
9110688600
commit
dbbba16250
@ -16,7 +16,8 @@
|
||||
.config(['$locationProvider', function($locationProvider) {
|
||||
$locationProvider.html5Mode({
|
||||
enabled: true,
|
||||
requireBase: false
|
||||
requireBase: false,
|
||||
rewriteLinks: false,
|
||||
});
|
||||
}])
|
||||
.config(['$provide', '$windowProvider', function($provide, $windowProvider){
|
||||
|
@ -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 });
|
||||
});
|
||||
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user