dont require base url

This commit is contained in:
Mo Bitar
2017-01-15 11:54:09 -06:00
parent 84127c7429
commit e51d1e3477

View File

@@ -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
});
}
});