Commit 052d904ea48f87d1670b8e68c89cc157454c06f2

Authored by Victor Costa
1 parent 7f726e4d

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,9 +15,9 @@
15 vm.profile = $scope.vm.owner; 15 vm.profile = $scope.vm.owner;
16 noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(result) { 16 noosfero.profile(vm.profile.id).customGET('home_page', {fields: 'path'}).then(function(result) {
17 if(result.article) { 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 } else { 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 }