From 5c15fe2137258b23041a7f2dd00ceb5bbc0dcb62 Mon Sep 17 00:00:00 2001 From: Georges-Antoine Assi Date: Fri, 16 Jan 2026 17:22:00 -0500 Subject: [PATCH] [HOTFIX] Only add ? to qs on download path --- frontend/src/utils/index.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/frontend/src/utils/index.ts b/frontend/src/utils/index.ts index f33267c58..bbd45f328 100644 --- a/frontend/src/utils/index.ts +++ b/frontend/src/utils/index.ts @@ -122,7 +122,10 @@ export function getDownloadPath({ if (fileIDs.length > 0) { queryParams.append("file_ids", fileIDs.join(",")); } - return `/api/roms/${rom.id}/content/${rom.fs_name}?${queryParams.toString()}`; + const queryString = queryParams.toString(); + return `/api/roms/${rom.id}/content/${rom.fs_name}${ + queryString ? `?${queryString}` : "" + }`; } export function getDownloadLink({