diff --git a/application/forms/Authentication/LoginForm.php b/application/forms/Authentication/LoginForm.php index 8a71ecf55..fd7173b7e 100644 --- a/application/forms/Authentication/LoginForm.php +++ b/application/forms/Authentication/LoginForm.php @@ -11,6 +11,7 @@ use Icinga\Authentication\Auth; use Icinga\Authentication\User\ExternalBackend; use Icinga\Common\Database; use Icinga\User; +use Icinga\Web\Dashboard\Dashboard; use Icinga\Web\Form; use Icinga\Web\RememberMe; use Icinga\Web\Url; @@ -27,7 +28,7 @@ class LoginForm extends Form /** * Redirect URL */ - const REDIRECT_URL = 'dashboard'; + const REDIRECT_URL = Dashboard::BASE_ROUTE; public static $defaultElementDecorators = [ ['ViewHelper', ['separator' => '']], diff --git a/application/layouts/scripts/body.phtml b/application/layouts/scripts/body.phtml index 87b570bfe..fea90ee7b 100644 --- a/application/layouts/scripts/body.phtml +++ b/application/layouts/scripts/body.phtml @@ -1,5 +1,6 @@ layout()->inlineLayout) {