diff --git a/lib/app/js/app.js b/lib/app/js/app.js index da01be45..c4eb86fa 100644 --- a/lib/app/js/app.js +++ b/lib/app/js/app.js @@ -39,7 +39,7 @@ angular.module('sgApp', [ } }) .state('app.index.section', { - url: '/:section', + url: '/section/:section', templateUrl: 'views/sections.html', controller: 'SectionsCtrl', resolve: { @@ -63,7 +63,7 @@ angular.module('sgApp', [ } }) .state('app.fullscreen', { - url: '/:section/fullscreen', + url: '/section/:section/fullscreen', templateUrl: 'views/element-fullscreen.html', controller: 'ElementCtrl', resolve: { @@ -73,6 +73,9 @@ angular.module('sgApp', [ } } } + }).state('app.index.404', { + url: '/:all', + templateUrl: 'views/404.html' }); $locationProvider.html5Mode(true); diff --git a/lib/app/views/main.html b/lib/app/views/main.html index 1c762059..89e2db22 100644 --- a/lib/app/views/main.html +++ b/lib/app/views/main.html @@ -43,14 +43,14 @@