From a991758e98fc614d35ec67ec904c78fa0ff6feeb Mon Sep 17 00:00:00 2001 From: kent1 Date: Mon, 5 Mar 2018 19:43:15 +0100 Subject: Redirect to original URL after oauth login --- app/Controller/OAuthController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/Controller/OAuthController.php') diff --git a/app/Controller/OAuthController.php b/app/Controller/OAuthController.php index 7663ddcc..abd9b2e7 100644 --- a/app/Controller/OAuthController.php +++ b/app/Controller/OAuthController.php @@ -106,7 +106,7 @@ class OAuthController extends BaseController protected function authenticate($providerName) { if ($this->authenticationManager->oauthAuthentication($providerName)) { - $this->response->redirect($this->helper->url->to('DashboardController', 'show')); + $this->redirectAfterLogin(); } else { $this->authenticationFailure(t('External authentication failed')); } -- cgit v1.2.3