Fix that the detail URL is no longer appended to the redirect URL on login
JavaScript relied on #redirect but we now protect IDs which make them unusable for JS and CSS. refs #8728
This commit is contained in:
parent
32487e4e21
commit
b5abff0313
|
@ -112,7 +112,7 @@
|
|||
this.lastPushUrl = url;
|
||||
window.history.pushState({icinga: true}, null, url);
|
||||
},
|
||||
|
||||
|
||||
/**
|
||||
* Event handler for pop events
|
||||
*
|
||||
|
@ -166,9 +166,10 @@
|
|||
parts = document.location.hash.split(/#!/);
|
||||
|
||||
if ($('#layout > #login').length) {
|
||||
// We are on the login page!
|
||||
$('#login form #redirect').val(
|
||||
$('#login form #redirect').val() + '#!' + parts[1]
|
||||
// We are on the login page
|
||||
var redirect = $('#login form input[name=redirect]').first();
|
||||
redirect.val(
|
||||
redirect.val() + '#!' + parts[1]
|
||||
);
|
||||
} else {
|
||||
if ($('#col2').data('icingaUrl') !== main) {
|
||||
|
|
Loading…
Reference in New Issue