Answer the question
In order to leave comments, you need to log in
Why did redirect stop working?
public function actionLogin()
{
return $this->redirect(['/']);
}
White screen, nothing in the logs, debug enabled
On the local server everything works,
on the working server I write a redirect to any action and it does not work
return Yii::$app->getResponse()->redirect(['/backend/pages/index']);
$this->redirect(['/']);
Answer the question
In order to leave comments, you need to log in
as I understand it, because return is missed return $this->redirect(['/']);
- there will be a redirect $this->redirect(['/']);
- there will be a white screen
White screen - 98% return is missed in the action
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question