diff --git a/ESSArch_Core/frontend/static/frontend/scripts/controllers/ClassificationModalInstanceCtrl.js b/ESSArch_Core/frontend/static/frontend/scripts/controllers/ClassificationModalInstanceCtrl.js index 57fe88ed6..a89e52dbc 100644 --- a/ESSArch_Core/frontend/static/frontend/scripts/controllers/ClassificationModalInstanceCtrl.js +++ b/ESSArch_Core/frontend/static/frontend/scripts/controllers/ClassificationModalInstanceCtrl.js @@ -219,7 +219,7 @@ export default class ClassificationModalInstanceCtrl { $ctrl.removeNode = function () { $http - .delete(appConfig.djangoUrl + 'structures/' + data.structure.id + '/units/' + $ctrl.node.id) + .delete(appConfig.djangoUrl + 'structures/' + data.structure.id + '/units/' + $ctrl.node.id + '/') .then(function (response) { Notifications.add($translate.instant('ACCESS.NODE_REMOVED'), 'success'); EditMode.disable(); diff --git a/ESSArch_Core/frontend/static/frontend/scripts/controllers/RemoveStructureUnitModalInstanceCtrl.js b/ESSArch_Core/frontend/static/frontend/scripts/controllers/RemoveStructureUnitModalInstanceCtrl.js index 0b62a6e70..105ad2112 100644 --- a/ESSArch_Core/frontend/static/frontend/scripts/controllers/RemoveStructureUnitModalInstanceCtrl.js +++ b/ESSArch_Core/frontend/static/frontend/scripts/controllers/RemoveStructureUnitModalInstanceCtrl.js @@ -11,7 +11,7 @@ export default class RemoveStructureUnitModalInstanceCtrl { $ctrl.removeNode = function () { $http - .delete(appConfig.djangoUrl + 'structures/' + data.structure.id + '/units/' + $ctrl.node.id) + .delete(appConfig.djangoUrl + 'structures/' + data.structure.id + '/units/' + $ctrl.node.id + '/') .then(function (response) { Notifications.add($translate.instant('ACCESS.NODE_REMOVED'), 'success'); $uibModalInstance.close($ctrl.node); diff --git a/ESSArch_Core/frontend/static/frontend/scripts/controllers/SavedSearchModalInstanceCtrl.js b/ESSArch_Core/frontend/static/frontend/scripts/controllers/SavedSearchModalInstanceCtrl.js index 3669d3ccb..8dbd01094 100644 --- a/ESSArch_Core/frontend/static/frontend/scripts/controllers/SavedSearchModalInstanceCtrl.js +++ b/ESSArch_Core/frontend/static/frontend/scripts/controllers/SavedSearchModalInstanceCtrl.js @@ -6,7 +6,7 @@ export default class SavedSearchModalInstanceCtrl { }; $ctrl.remove = function () { - $http.delete(appConfig.djangoUrl + 'me/searches/' + $ctrl.data.search.id).then(function (response) { + $http.delete(appConfig.djangoUrl + 'me/searches/' + $ctrl.data.search.id + '/').then(function (response) { $uibModalInstance.close(response.data); }); };