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)
This commit is contained in:
Eric Lippmann 2021-11-16 11:51:32 +01:00 committed by Sukhwinder Dhillon
parent d208d1ccfe
commit ef7f40d319

View File

@ -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();