Skip to content

Commit

Permalink
Fix issue with adding the query param if there was one already
Browse files Browse the repository at this point in the history
  • Loading branch information
vrugtehagel committed Jun 20, 2024
1 parent 0408abd commit ea3c69c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/asset-hash.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ export async function assetHash(
const checksum = await getAssetChecksum(fullPath);
if (checksum == null) continue;
const endIndex = index + path.length;
result = result[endIndex + 1] == "?"
result = result[endIndex] == "?"
? insertAt(result, `${param}=${checksum}&`, endIndex + 1)
: insertAt(result, `?${param}=${checksum}`, endIndex);
}
Expand Down

0 comments on commit ea3c69c

Please sign in to comment.