Merge pull request #2907 from rommapp/query-string-download-path

[HOTFIX] Only add ? to qs on download path
This commit is contained in:
Georges-Antoine Assi
2026-01-16 17:53:59 -05:00
committed by GitHub

View File

@@ -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({