diff --git a/client/src/pages/index.js b/client/src/pages/index.js index d474b74..dc34ac4 100644 --- a/client/src/pages/index.js +++ b/client/src/pages/index.js @@ -16,7 +16,7 @@ const elRoomGrid = document.querySelector('.room-grid') async function logout() { await fetch(`${import.meta.env.BASE_URL}api/logout`, { method: 'POST' }) - location.href = '/' + location.href = `${import.meta.env.BASE_URL}` } async function main() {