diff --git a/chatserver/templates/index.html b/chatserver/templates/index.html index b2dcb17..0e25206 100644 --- a/chatserver/templates/index.html +++ b/chatserver/templates/index.html @@ -249,7 +249,7 @@ chatDiv.innerHTML = ""; // Fetch message history for the new chat room - fetch(`/get_history?chat_room=${encodeURIComponent(chatRoom)}`) + fetch(`${serverBaseUrl}/get_history?chat_room=${encodeURIComponent(chatRoom)}`) .then(response => { if (!response.ok) { throw new Error(`HTTP error! status: ${response.status}`);