Fix double encoding of bitstream filenames in URL

This commit is contained in:
Mohana Sarmiento
2025-01-20 18:13:35 -05:00
parent f3df3cc96c
commit 74d6dbb454

View File

@@ -171,7 +171,7 @@ export class BitstreamDataService extends IdentifiableDataService<Bitstream> imp
searchParams.push(new RequestParam('sequenceId', sequenceId)); searchParams.push(new RequestParam('sequenceId', sequenceId));
} }
if (hasValue(filename)) { if (hasValue(filename)) {
searchParams.push(new RequestParam('filename', encodeURIComponent(filename))); searchParams.push(new RequestParam('filename', filename));
} }
const hrefObs = this.getSearchByHref( const hrefObs = this.getSearchByHref(