mirror of
https://github.com/suitenumerique/meet.git
synced 2026-08-07 01:13:21 +00:00
🐛(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:
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}`)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user