diff --git a/src/app/core/data/item-data.service.ts b/src/app/core/data/item-data.service.ts index dcfb9d894a..0fb310e806 100644 --- a/src/app/core/data/item-data.service.ts +++ b/src/app/core/data/item-data.service.ts @@ -139,8 +139,7 @@ export class ItemDataService extends DataService { * @param searchOptions The search options to use */ public getBitstreams(itemId: string, searchOptions?: PaginatedSearchOptions): Observable>> { - const hrefObs = this.getItemWithdrawEndpoint(itemId).pipe( - map((href) => `${href}/bitstreams`), + const hrefObs = this.getBitstreamsEndpoint(itemId).pipe( map((href) => searchOptions ? searchOptions.toRestUrl(href) : href) ); hrefObs.pipe(