diff --git a/divshot.json b/divshot.json index cd76631..21ed1f5 100644 --- a/divshot.json +++ b/divshot.json @@ -1,4 +1,7 @@ { "name": "pbsapp", - "root": "dist" + "root": "dist", + "routes": { + "**": "index.html" + } } diff --git a/src/app.coffee b/src/app.coffee index e4b2ceb..10f32b3 100644 --- a/src/app.coffee +++ b/src/app.coffee @@ -1,8 +1,8 @@ pertApp = angular.module 'pertApp', ['ui.router'] -pertApp.config ($stateProvider,$urlRouterProvider) -> +pertApp.config ($stateProvider,$urlRouterProvider,$locationProvider) -> $urlRouterProvider.otherwise '/' - + $locationProvider.html5Mode enabled: yes, requireBase: no $stateProvider.state 'home', url: '/' templateUrl: 'welcome.html'