Revert "Revert "Fix logout loop (testing), #2""
This reverts commit 967c3552e5
.
This commit is contained in:
parent
8a1f6059d8
commit
8e94f3e58e
|
@ -71,7 +71,7 @@ class LoginForm extends Form
|
|||
if ($this->created) {
|
||||
$redirect = $this->getElement('redirect')->getValue();
|
||||
}
|
||||
if (empty($redirect)) {
|
||||
if (empty($redirect) || strpos($redirect, 'authentication/logout') !== 0) {
|
||||
$redirect = static::REDIRECT_URL;
|
||||
}
|
||||
return Url::fromPath($redirect);
|
||||
|
|
|
@ -359,7 +359,7 @@
|
|||
url = parts.shift();
|
||||
var redirectionUrl = this.addUrlFlag(url, 'renderLayout');
|
||||
var r = this.loadUrl(redirectionUrl, $('#layout'));
|
||||
r.addToHistory = false;
|
||||
r.historyUrl = url;
|
||||
if (parts.length) {
|
||||
r.loadNext = parts;
|
||||
} else if (!! document.location.hash) {
|
||||
|
@ -613,7 +613,8 @@
|
|||
} else {
|
||||
// Request wasn't for a container, so it's usually the body
|
||||
// or the full layout. Push request URL to history:
|
||||
this.icinga.history.pushUrl(req.url);
|
||||
var url = typeof req.historyUrl !== 'undefined' ? req.historyUrl : req.url;
|
||||
this.icinga.history.pushUrl(url);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue