fix: keep query params when switching chat

This commit is contained in:
Barış Soner Uşaklı
2021-06-16 09:49:29 -04:00
parent a2400f6baf
commit 7b4c0a1683

View File

@@ -416,7 +416,7 @@ define('forum/chats', [
roomid = '';
}
var url = 'user/' + ajaxify.data.userslug + '/chats/' + roomid;
var url = 'user/' + ajaxify.data.userslug + '/chats/' + roomid + window.location.search;
if (self.fetch) {
fetch(config.relative_path + '/api/' + url, { credentials: 'include' })
.then(function (response) {