How can i redirect user to previous page after updating a record? this is the typical scenario:
return $this->redirect('index',302); (this is not what I need)
return $this->redirect(Yii::$app->request->referrer); (this gets user back to update view and not to index view with filters)
return $this->goBack(); (this gets user to homepage)
In the action you want user to be redirected to add
Now next call in any controller like:
Will redirect user to the "marked" action.