diff --git a/public/src/client/chats.js b/public/src/client/chats.js index 2165d919ea..1d7fb2646e 100644 --- a/public/src/client/chats.js +++ b/public/src/client/chats.js @@ -424,8 +424,8 @@ define('forum/chats', [ messages.scrollToBottom($('.expanded-chat ul.chat-content')); if (history.pushState) { history.pushState({ - url: 'user/' + payload.userslug + '/chats/' + payload.roomId, - }, null, window.location.protocol + '//' + window.location.host + config.relative_path + '/user/' + payload.userslug + '/chats/' + payload.roomId); + url: url, + }, null, window.location.protocol + '//' + window.location.host + config.relative_path + '/' + url); } }); });