Skip to content

Commit 85c7d6d

Browse files
authored
Add traling slash for delete node and search (#2459)
1 parent 24ee55c commit 85c7d6d

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

ESSArch_Core/frontend/static/frontend/scripts/controllers/ClassificationModalInstanceCtrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ export default class ClassificationModalInstanceCtrl {
219219

220220
$ctrl.removeNode = function () {
221221
$http
222-
.delete(appConfig.djangoUrl + 'structures/' + data.structure.id + '/units/' + $ctrl.node.id)
222+
.delete(appConfig.djangoUrl + 'structures/' + data.structure.id + '/units/' + $ctrl.node.id + '/')
223223
.then(function (response) {
224224
Notifications.add($translate.instant('ACCESS.NODE_REMOVED'), 'success');
225225
EditMode.disable();

ESSArch_Core/frontend/static/frontend/scripts/controllers/RemoveStructureUnitModalInstanceCtrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ export default class RemoveStructureUnitModalInstanceCtrl {
1111

1212
$ctrl.removeNode = function () {
1313
$http
14-
.delete(appConfig.djangoUrl + 'structures/' + data.structure.id + '/units/' + $ctrl.node.id)
14+
.delete(appConfig.djangoUrl + 'structures/' + data.structure.id + '/units/' + $ctrl.node.id + '/')
1515
.then(function (response) {
1616
Notifications.add($translate.instant('ACCESS.NODE_REMOVED'), 'success');
1717
$uibModalInstance.close($ctrl.node);

ESSArch_Core/frontend/static/frontend/scripts/controllers/SavedSearchModalInstanceCtrl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export default class SavedSearchModalInstanceCtrl {
66
};
77

88
$ctrl.remove = function () {
9-
$http.delete(appConfig.djangoUrl + 'me/searches/' + $ctrl.data.search.id).then(function (response) {
9+
$http.delete(appConfig.djangoUrl + 'me/searches/' + $ctrl.data.search.id + '/').then(function (response) {
1010
$uibModalInstance.close(response.data);
1111
});
1212
};

0 commit comments

Comments
 (0)