diff --git a/src/app/core/json-patch/json-patch-operations.service.spec.ts b/src/app/core/json-patch/json-patch-operations.service.spec.ts index e1c6e79d10..a53e9e72b0 100644 --- a/src/app/core/json-patch/json-patch-operations.service.spec.ts +++ b/src/app/core/json-patch/json-patch-operations.service.spec.ts @@ -156,7 +156,7 @@ describe('JsonPatchOperationsService test suite', () => { }); it('should send a new SubmissionPatchRequest', () => { - const expected = new SubmissionPatchRequest(requestService.generateRequestId(), resourceHref, patchOpBody); + const expected = new SubmissionPatchRequest(requestService.generateRequestId(), resourceHref + '?embed=item', patchOpBody); scheduler.schedule(() => service.jsonPatchByResourceType(resourceEndpoint, resourceScope, testJsonPatchResourceType).subscribe()); scheduler.flush(); @@ -246,7 +246,7 @@ describe('JsonPatchOperationsService test suite', () => { }); it('should send a new SubmissionPatchRequest', () => { - const expected = new SubmissionPatchRequest(requestService.generateRequestId(), resourceHref, patchOpBody); + const expected = new SubmissionPatchRequest(requestService.generateRequestId(), resourceHref + '?embed=item', patchOpBody); scheduler.schedule(() => service.jsonPatchByResourceID(resourceEndpoint, resourceScope, testJsonPatchResourceType, testJsonPatchResourceId).subscribe()); scheduler.flush(); diff --git a/src/app/core/json-patch/json-patch-operations.service.ts b/src/app/core/json-patch/json-patch-operations.service.ts index 552a4354fd..fb3fbc0702 100644 --- a/src/app/core/json-patch/json-patch-operations.service.ts +++ b/src/app/core/json-patch/json-patch-operations.service.ts @@ -37,6 +37,7 @@ import { } from './json-patch-operations.actions'; import { JsonPatchOperationsResourceEntry } from './json-patch-operations.reducer'; import { jsonPatchOperationsByResourceType } from './selectors'; +import { URLCombiner } from '../url-combiner/url-combiner'; /** * An abstract class that provides methods to make JSON Patch requests. @@ -144,7 +145,7 @@ export abstract class JsonPatchOperationsService