Skip to content

Commit

Permalink
Include URL query strings in media downloader
Browse files Browse the repository at this point in the history
  • Loading branch information
claytercek committed Sep 12, 2024
1 parent 022181b commit b7fa754
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
5 changes: 5 additions & 0 deletions .changeset/curvy-cheetahs-scream.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@bluecadet/launchpad-content": minor
---

Include URL query strings for default media download paths
2 changes: 1 addition & 1 deletion packages/content/lib/content-sources/content-result.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export class MediaDownload {
* The path of this asset relative to this source's root asset dir.
* Can optionally be overriden to save this file at another location.
*/
this.localPath = localPath || new URL(this.url).pathname;
this.localPath = localPath || new URL(this.url).pathname + new URL(this.url).search;

Object.assign(this, rest);
}
Expand Down

0 comments on commit b7fa754

Please sign in to comment.