redirect to correct route on Chats.leave
@ -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();
@ -75,7 +75,7 @@ define('forum/chats/search', ['components'], function(components) {
if (roomId) {
ajaxify.go('chats/' + roomId);
Chats.switchChat(roomId);
app.newChat(userObj.uid);