Skip to content

Commit

Permalink
#323 Make a trailing slash optional for all routes
Browse files Browse the repository at this point in the history
Closes #323
  • Loading branch information
simison committed Feb 26, 2016
1 parent 8be6f5c commit 99b4b99
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/core/client/app/init.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
.config(initConfig);

/* @ngInject */
function initConfig(lockerProvider, cfpLoadingBarProvider, $locationProvider, $messageCenterServiceProvider) {
function initConfig(lockerProvider, cfpLoadingBarProvider, $locationProvider, $urlMatcherFactoryProvider, $messageCenterServiceProvider) {

// Setting HTML5 Location Mode
$locationProvider.html5Mode({
Expand All @@ -22,6 +22,10 @@
requireBase: false
}).hashPrefix('!');

// Make a trailing slash optional for all routes (ui-router)
// @link https://github.com/angular-ui/ui-router/wiki/Frequently-Asked-Questions#how-to-make-a-trailing-slash-optional-for-all-routes
$urlMatcherFactoryProvider.strictMode(false);

// Hide spinner from the loading interceptor
// @link https://github.com/chieffancypants/angular-loading-bar
cfpLoadingBarProvider.includeSpinner = false;
Expand Down

0 comments on commit 99b4b99

Please sign in to comment.