diff --git a/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/deprecated/tracker/EnrollmentController.java b/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/deprecated/tracker/EnrollmentController.java index ef0746a7b97..ea1da621e97 100644 --- a/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/deprecated/tracker/EnrollmentController.java +++ b/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/deprecated/tracker/EnrollmentController.java @@ -233,7 +233,7 @@ public WebMessage postEnrollmentJson( if (!importSummary.getStatus().equals(ImportStatus.ERROR)) { importSummaries(importSummaries) .setHttpStatus(HttpStatus.CREATED) - .setLocation("enrollments/" + importSummary.getReference()); + .setLocation("/enrollments/" + importSummary.getReference()); } } @@ -280,7 +280,7 @@ public WebMessage postEnrollmentXml( if (!importSummary.getStatus().equals(ImportStatus.ERROR)) { importSummaries(importSummaries) .setHttpStatus(HttpStatus.CREATED) - .setLocation("enrollments/" + importSummary.getReference()); + .setLocation("/enrollments/" + importSummary.getReference()); } } diff --git a/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/deprecated/tracker/TrackedEntityInstanceController.java b/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/deprecated/tracker/TrackedEntityInstanceController.java index 1d08b698590..a3adcff55e5 100644 --- a/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/deprecated/tracker/TrackedEntityInstanceController.java +++ b/dhis-2/dhis-web-api/src/main/java/org/hisp/dhis/webapi/controller/deprecated/tracker/TrackedEntityInstanceController.java @@ -457,7 +457,7 @@ private WebMessage postTrackedEntityInstance( .setLocation( singleSummary == null ? null - : "trackedEntityInstances/" + singleSummary.getReference()); + : "/trackedEntityInstances/" + singleSummary.getReference()); } return jobConfigurationReport(jobId); }