From bffc51ac4cd866cffe9980a478e3998f5a34ad7a Mon Sep 17 00:00:00 2001 From: lebaudantoine Date: Wed, 5 Aug 2026 18:03:50 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(frontend)=20add=20trailing=20slash?= =?UTF-8?q?=20on=20the=20fetch-room=20URL?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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. --- src/frontend/src/features/rooms/api/fetchRoom.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/src/features/rooms/api/fetchRoom.ts b/src/frontend/src/features/rooms/api/fetchRoom.ts index bdbd1085..5a091711 100644 --- a/src/frontend/src/features/rooms/api/fetchRoom.ts +++ b/src/frontend/src/features/rooms/api/fetchRoom.ts @@ -10,5 +10,5 @@ export const fetchRoom = ({ }) => { const query = username ? `?username=${encodeURIComponent(username)}` : '' - return fetchApi(`/rooms/${roomId}${query}`) + return fetchApi(`/rooms/${roomId}/${query}`) }