mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-15 05:53:03 +00:00
fixed an issue where browse definition REST URLs would be wrong in certain cases
This commit is contained in:
@@ -36,7 +36,7 @@ export class BrowseService {
|
||||
|
||||
getBrowseURLFor(metadatumKey: string, linkPath: string): Observable<string> {
|
||||
const searchKeyArray = BrowseService.toSearchKeyArray(metadatumKey);
|
||||
return this.halService.getEndpoint(linkPath)
|
||||
return this.halService.getEndpoint(this.linkPath)
|
||||
.filter((href: string) => isNotEmpty(href))
|
||||
.distinctUntilChanged()
|
||||
.map((endpointURL: string) => new BrowseEndpointRequest(this.requestService.generateRequestId(), endpointURL))
|
||||
|
Reference in New Issue
Block a user