Skip to content

Node.js based forum software built for the modern web

fix route on chat search

Anil Mandepudi2ef09de48d35
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
+});