From 89413ffceabefa56f142df2b87d5733e9b3f5b91 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Sun, 9 Jul 2017 21:32:16 +0800 Subject: [PATCH] feat(forums): nav to new topic when topic post succussfull --- .../forums/client/controllers/forums-post.client.controller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/forums/client/controllers/forums-post.client.controller.js b/modules/forums/client/controllers/forums-post.client.controller.js index 1476c153..d14a0306 100644 --- a/modules/forums/client/controllers/forums-post.client.controller.js +++ b/modules/forums/client/controllers/forums-post.client.controller.js @@ -62,7 +62,7 @@ vm.postFields = {}; $scope.$broadcast('show-errors-reset', 'vm.postForm'); NotifycationService.showSuccessNotify('FORUMS.POST_TOPIC_SUCCESSFULLY'); - $state.go('forums.view', {forumId: vm.forum._id}); + $state.go('forums.topic', {forumId: vm.forum._id, topicId: res._id}); } function errorCallback(res) {