From 88f5bb83689b92289c06d9a7e4bdc326ea271a92 Mon Sep 17 00:00:00 2001 From: Johannes Meyer Date: Fri, 22 May 2015 16:54:59 +0200 Subject: [PATCH] js: Relax check whether to switch to single column layout upon redirect This fixes the problem when redirecting from a form using the same route as in the leftmost column but with a different querystring, that one gets the same route shown twice. --- public/js/icinga/loader.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/icinga/loader.js b/public/js/icinga/loader.js index 99667ac1c..082b41e87 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -310,7 +310,7 @@ } else { if (req.$target.attr('id') === 'col2') { // TODO: multicol - if ($('#col1').data('icingaUrl') === redirect) { + if ($('#col1').data('icingaUrl').split('?')[0] === redirect.split('?')[0]) { icinga.ui.layout1col(); req.$target = $('#col1'); delete(this.requests['col2']);