From 9a57ddcfa61699c5ba77bb614a27a292b7a9a57c Mon Sep 17 00:00:00 2001 From: Matthias Jentsch Date: Tue, 30 Sep 2014 15:49:31 +0200 Subject: [PATCH] Fix login redirects when AutologinBackend is used --- application/controllers/AuthenticationController.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/application/controllers/AuthenticationController.php b/application/controllers/AuthenticationController.php index b87779669..31e7d271f 100644 --- a/application/controllers/AuthenticationController.php +++ b/application/controllers/AuthenticationController.php @@ -124,7 +124,9 @@ class AuthenticationController extends ActionController $authenticated = $backend->authenticate($user); if ($authenticated === true) { $auth->setAuthenticated($user); - $this->rerenderLayout()->redirectNow($redirectUrl); + $this->rerenderLayout()->redirectNow( + Url::fromPath(Url::fromRequest()->getParam('redirect', 'dashboard')) + ); } } }