🐛(frontend) add trailing slash on the fetch-room URL

The fetch-room URL was missing its trailing slash, which caused the
backend to issue a 301 redirect. Query parameters were being dropped
in the process, leading to incorrect requests.

Append the trailing slash so the request hits the correct endpoint
directly, without going through a redirect.
This commit is contained in:
lebaudantoine
2026-08-05 18:03:50 +02:00
committed by aleb_the_flash
parent 22a1713c60
commit bffc51ac4c
@@ -10,5 +10,5 @@ export const fetchRoom = ({
}) => {
const query = username ? `?username=${encodeURIComponent(username)}` : ''
return fetchApi<ApiRoom>(`/rooms/${roomId}${query}`)
return fetchApi<ApiRoom>(`/rooms/${roomId}/${query}`)
}