From 95a372df85a5e78536c17728e3061d4238ac9bf7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bar=C4=B1=C5=9F=20Soner=20U=C5=9Fakl=C4=B1?= Date: Wed, 16 Oct 2019 17:42:02 -0400 Subject: [PATCH] fix: #7977, fix undefined url (#7978) --- public/src/client/chats.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } }); });