Commit 2e5167337cf0f90a9d1af57f88da3b84c22d48ff
1 parent
66abb331
Exists in
master
and in
1 other branch
Accept profile prefix in route
Showing
1 changed file
with
3 additions
and
0 deletions
Show diff stats
src/app/index.route.js
@@ -12,6 +12,9 @@ | @@ -12,6 +12,9 @@ | ||
12 | controller: 'MainController', | 12 | controller: 'MainController', |
13 | controllerAs: 'main' | 13 | controllerAs: 'main' |
14 | }) | 14 | }) |
15 | + .when('/profile/:profile', { | ||
16 | + redirectTo: '/:profile' | ||
17 | + }) | ||
15 | .otherwise({ | 18 | .otherwise({ |
16 | redirectTo: '/' | 19 | redirectTo: '/' |
17 | }); | 20 | }); |