From 5f5b34db274c3a4993fa10f5fd45ed2dbacce231 Mon Sep 17 00:00:00 2001 From: TJ Date: Fri, 21 Nov 2014 21:16:27 -0800 Subject: [PATCH] Updated angularjs requires $location:nobase https://gist.github.com/lpsBetty/714c93492ab4d535d105 --- public/js/routes/auth.js | 8 ++++++-- public/js/routes/routes.js | 7 +++++-- 2 files changed, 11 insertions(+), 4 deletions(-) diff --git a/public/js/routes/auth.js b/public/js/routes/auth.js index 8bd741a0..338c5a0b 100644 --- a/public/js/routes/auth.js +++ b/public/js/routes/auth.js @@ -2,7 +2,11 @@ define([ 'app' ], function(app) { app.config(function($stateProvider, $urlRouterProvider, $locationProvider, $couchPotatoProvider) { - $locationProvider.html5Mode(true); + $locationProvider.html5Mode({ + enabled: true, + requireBase: false + }) + $urlRouterProvider.otherwise('/'); @@ -16,4 +20,4 @@ define([ } }) }); -}); \ No newline at end of file +}); diff --git a/public/js/routes/routes.js b/public/js/routes/routes.js index afc12445..d3a0f906 100644 --- a/public/js/routes/routes.js +++ b/public/js/routes/routes.js @@ -7,7 +7,10 @@ define([ 'services/playbooks' ], function(app, io) { app.config(function($stateProvider, $urlRouterProvider, $locationProvider, $couchPotatoProvider) { - $locationProvider.html5Mode(true); + $locationProvider.html5Mode({ + enabled: true, + requireBase: false + }) $urlRouterProvider.otherwise(''); @@ -33,4 +36,4 @@ define([ user.getUser(function() {}); playbooks.getPlaybooks(function() {}); }) -}) \ No newline at end of file +})