From fbf3a1f757154735817273e25df870f8473e32bb Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Thu, 15 Oct 2020 09:48:45 +0200 Subject: [PATCH] loader.js: Don't add form submits other than `GET`s to the history This has previously not been an issue, as form submits seem to have never targeted another url than their container's current one. Though any form that did this, was pushed to history upon submit. This happens now only for `GET` forms. --- public/js/icinga/loader.js | 1 + 1 file changed, 1 insertion(+) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 6fa3c38e6..75dfc54a6 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -183,6 +183,7 @@ var req = this.loadUrl(url, $target, data, method); req.forceFocus = $autoSubmittedBy ? $autoSubmittedBy : $button.length ? $button : null; + req.addToHistory = method === 'GET'; req.progressTimer = progressTimer; return req; },