dont require base url
This commit is contained in:
@@ -20,11 +20,16 @@ angular.module('app.frontend')
|
||||
// Default fall back route
|
||||
$urlRouterProvider.otherwise(function($injector, $location){
|
||||
var state = $injector.get('$state');
|
||||
console.log("fallback");
|
||||
state.go('home');
|
||||
return $location.path();
|
||||
});
|
||||
|
||||
// enable HTML5 Mode for SEO
|
||||
$locationProvider.html5Mode(true);
|
||||
if(window.history && window.history.pushState) {
|
||||
$locationProvider.html5Mode({
|
||||
enabled: true,
|
||||
requireBase: false
|
||||
});
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user