mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-17 06:53:03 +00:00
ensured the workaround doesn't break things when the issue gets fixed
This commit is contained in:
@@ -21,7 +21,9 @@ export class RootResponseParsingService implements ResponseParsingService {
|
||||
for (const link of Object.keys(links)) {
|
||||
let href = links[link].href;
|
||||
// TODO temporary workaround as these endpoint paths are relative, but should be absolute
|
||||
href = new RESTURLCombiner(this.EnvConfig, href.substring(this.EnvConfig.rest.nameSpace.length)).toString();
|
||||
if (isNotEmpty(href) && !href.startsWith('http')) {
|
||||
href = new RESTURLCombiner(this.EnvConfig, href.substring(this.EnvConfig.rest.nameSpace.length)).toString();
|
||||
}
|
||||
links[link] = href;
|
||||
}
|
||||
return new RootSuccessResponse(links, data.statusCode);
|
||||
|
Reference in New Issue
Block a user