Commit 052d904ea48f87d1670b8e68c89cc157454c06f2
1 parent
7f726e4d
Exists in
master
and in
38 other branches
Keep url when redirect to profile home page
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
src/app/profile/profile-home.controller.js
| ... | ... | @@ -15,9 +15,9 @@ |
| 15 | 15 | vm.profile = $scope.vm.owner; |
| 16 | 16 | noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(result) { |
| 17 | 17 | if(result.article) { |
| 18 | - $state.transitionTo('main.profile.page', {page: result.article.path, profile: vm.profile.identifier}); | |
| 18 | + $state.transitionTo('main.profile.page', {page: result.article.path, profile: vm.profile.identifier}, {location: false}); | |
| 19 | 19 | } else { |
| 20 | - $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}); | |
| 20 | + $state.transitionTo('main.profile.info', {profile: vm.profile.identifier}, {location: false}); | |
| 21 | 21 | } |
| 22 | 22 | }); |
| 23 | 23 | } | ... | ... |