Home > Article > Backend Development > yii2 jumps back to the page requested before logging in?
yii2 After logging in, jump back to the page requested before logging in?
yii2 After logging in, jump back to the page requested before logging in?
Just execute goBack:
return $this->goBack();
You can learn from the implementation of laravel
return redirect()->intended()