Skip to content

Commit

Permalink
Fixed issue #19302: Wrong redirect when directLogin is true (#3660)
Browse files Browse the repository at this point in the history
  • Loading branch information
mbischof committed Dec 11, 2023
1 parent f2e239f commit 23795ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/controllers/RegisterController.php
Expand Up @@ -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();
}
Expand Down

0 comments on commit 23795ae

Please sign in to comment.