Skip to content

Commit

Permalink
add catalog to URI
Browse files Browse the repository at this point in the history
  • Loading branch information
drernie committed Nov 15, 2024
1 parent e436aa5 commit 8c45baa
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion catalog/app/utils/PackageUri.ts
Original file line number Diff line number Diff line change
Expand Up @@ -108,5 +108,6 @@ export function stringify({ bucket, name, hash, tag, path }: PackageUri) {
pkgSpec += `:${tag}`
}
const pathPart = path ? `&path=${encodeURIComponent(path)}` : ''
return `quilt+s3://${bucket}#package=${pkgSpec}${pathPart}`
const catalogPart = window.location.hostname
return `quilt+s3://${bucket}#package=${pkgSpec}${pathPart}&catalog=${catalogPart}`
}

0 comments on commit 8c45baa

Please sign in to comment.