From 35acb10a443358d3579c48b3c0f5e9a822d87ba1 Mon Sep 17 00:00:00 2001 From: henrikek Date: Mon, 26 Jan 2026 12:06:51 +0100 Subject: [PATCH] Add traling slash for delete node and search --- .../scripts/controllers/ClassificationModalInstanceCtrl.js | 2 +- .../scripts/controllers/RemoveStructureUnitModalInstanceCtrl.js | 2 +- .../scripts/controllers/SavedSearchModalInstanceCtrl.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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); }); };