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
This commit is contained in:
Eric Lippmann 2021-11-16 11:51:32 +01:00 committed by GitHub
commit d3bc7b6731
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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();