mirror of
https://github.com/rommapp/romm.git
synced 2026-03-03 02:27:00 +00:00
Merge pull request #2907 from rommapp/query-string-download-path
[HOTFIX] Only add ? to qs on download path
This commit is contained in:
@@ -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({
|
||||
|
||||
Reference in New Issue
Block a user