From 9c646ce39c86bf46791836bb56e5980b0b3c0f9a Mon Sep 17 00:00:00 2001 From: Anil Mandepudi Date: Mon, 26 Sep 2016 15:56:36 -0700 Subject: [PATCH 1/2] redirect to correct route on Chats.leave --- public/src/client/chats.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/src/client/chats.js b/public/src/client/chats.js index 2435042289..7f94eb1b66 100644 --- a/public/src/client/chats.js +++ b/public/src/client/chats.js @@ -290,7 +290,7 @@ define('forum/chats', [ return app.alertError(err.message); } if (parseInt(roomId, 10) === ajaxify.data.roomId) { - ajaxify.go('chats'); + ajaxify.go('user/' + ajaxify.data.userslug + '/chats'); } else { el.remove(); } From 2ef09de48d35bfc74c6e39e76ce8125b3cccf80b Mon Sep 17 00:00:00 2001 From: Anil Mandepudi Date: Mon, 26 Sep 2016 17:06:31 -0700 Subject: [PATCH 2/2] fix route on chat search --- public/src/client/chats/search.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/src/client/chats/search.js b/public/src/client/chats/search.js index 3645db282f..947959f7a4 100644 --- a/public/src/client/chats/search.js +++ b/public/src/client/chats/search.js @@ -75,7 +75,7 @@ define('forum/chats/search', ['components'], function(components) { return app.alertError(err.message); } if (roomId) { - ajaxify.go('chats/' + roomId); + Chats.switchChat(roomId); } else { app.newChat(userObj.uid); } @@ -84,4 +84,4 @@ define('forum/chats/search', ['components'], function(components) { } return search; -}); \ No newline at end of file +});