From 23795ae7e9059f44d1a97d99a1ebf62e273119fc Mon Sep 17 00:00:00 2001 From: Marko Bischof Date: Mon, 11 Dec 2023 13:03:39 +0100 Subject: [PATCH] Fixed issue #19302: Wrong redirect when directLogin is true (#3660) --- application/controllers/RegisterController.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/application/controllers/RegisterController.php b/application/controllers/RegisterController.php index 22b96973c45..764b7983b09 100644 --- a/application/controllers/RegisterController.php +++ b/application/controllers/RegisterController.php @@ -134,7 +134,7 @@ public function actionIndex($sid = null) self::sendRegistrationEmail($iSurveyId, $iTokenId); } $oToken = Token::model($iSurveyId)->findByPk($iTokenId)->decrypt(); - $redirectUrl = Yii::app()->getController()->createUrl('/survey/', array('sid' => $iSurveyId,'token' => $oToken->token, 'lang' => $sLanguage)); + $redirectUrl = Yii::app()->getController()->createUrl('/survey/index', array('sid' => $iSurveyId,'token' => $oToken->token, 'lang' => $sLanguage)); Yii::app()->getController()->redirect($redirectUrl); Yii::app()->end(); }