js: Fix that redirects into currently empty columns don't work

This commit is contained in:
Johannes Meyer 2021-11-11 15:17:00 +01:00
parent e628cb0254
commit c83ab17826
1 changed files with 1 additions and 1 deletions

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