From 2ef09de48d35bfc74c6e39e76ce8125b3cccf80b Mon Sep 17 00:00:00 2001 From: Anil Mandepudi Date: Mon, 26 Sep 2016 17:06:31 -0700 Subject: [PATCH] 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 +});