From ef7f40d3195207f404aecae56c7e4cb3f5243e17 Mon Sep 17 00:00:00 2001 From: Eric Lippmann Date: Tue, 16 Nov 2021 11:51:32 +0100 Subject: [PATCH] Merge pull request #4600 from Icinga/fix/landing-redirects-in-col2-do-not-load js: Fix that redirects into currently empty columns don't work (cherry picked from commit d3bc7b673180ce1c32d890ba60f33a19f8a95abc) --- 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 1de675a09..f038dc7c8 100644 --- a/public/js/icinga/loader.js +++ b/public/js/icinga/loader.js @@ -643,7 +643,7 @@ this.loadUrl(parts.shift(), $('#col2')); } else { if ($target.attr('id') === 'col2') { // TODO: multicol - if ($target.data('icingaUrl').split('?')[0] === url.split('?')[0]) { + if (($target.data('icingaUrl') || '').split('?')[0] === url.split('?')[0]) { // Don't do anything in this case } else if ($('#col1').data('icingaUrl').split('?')[0] === url.split('?')[0]) { icinga.ui.layout1col();