Commit d3b0489122f932ab380ee2ed7cdd6c4b82e84d0a
1 parent
45cc94c3
Exists in
master
and in
1 other branch
Fix main route
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/app/index.route.js
@@ -8,7 +8,7 @@ | @@ -8,7 +8,7 @@ | ||
8 | function routeConfig($stateProvider, $urlRouterProvider) { | 8 | function routeConfig($stateProvider, $urlRouterProvider) { |
9 | $stateProvider | 9 | $stateProvider |
10 | .state('main', { | 10 | .state('main', { |
11 | - url: '', | 11 | + url: '/', |
12 | templateUrl: 'app/main/main.html', | 12 | templateUrl: 'app/main/main.html', |
13 | controller: 'MainController', | 13 | controller: 'MainController', |
14 | controllerAs: 'vm', | 14 | controllerAs: 'vm', |
@@ -32,7 +32,7 @@ | @@ -32,7 +32,7 @@ | ||
32 | url: '^/myprofile/:profile' | 32 | url: '^/myprofile/:profile' |
33 | }) | 33 | }) |
34 | .state('main.profile', { | 34 | .state('main.profile', { |
35 | - url: '/:profile', | 35 | + url: '^/:profile', |
36 | abstract: true, | 36 | abstract: true, |
37 | views: { | 37 | views: { |
38 | 'content': { | 38 | 'content': { |