diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 547321251..71f7c45b0 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -89,6 +89,11 @@ $target = this.getLinkTargetFor($form); } + // Overwrite the URL only if the form is not auto submitted + if ($button.hasAttr('formaction') && ! $autoSubmittedBy) { + url = $button.attr('formaction'); + } + if (! url) { // Use the URL of the target container if the form's action is not set url = $target.closest('.container').data('icinga-url');