fixed an issue where browse definition REST URLs would be wrong in certain cases

This commit is contained in:
Art Lowel
2018-04-20 11:17:52 +02:00
parent 60366e3eec
commit c125f36f43

View File

@@ -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))