Is there any way to redirect to a page other than login in behaviors method in Yii 2?
My behaviors method content:
public function behaviors()
{
retu
I'm using yii2-user for user management, and the redirect to login was going to /user/login instead of the yii2-user defined /user/security/login. so my fix was to update the urlManager rules with: '' => 'user/security/'
I guess this could be used also to redirect to some other controller/action other than login.
See here.