title: How to return to previous page after update a record?
body: <p>I use Yii2 and I have this problem. This is my Update action:</p>
  <pre><code>public function actionUpdate($id)
      {
        $searchModel = new AutoriSearch();
        $searchModel1 = new EditoriSearch();
        $searchModel2 = new LuoghiSearch();
        $dataProvider = $searchModel-&gt;search(Yii::$app-&gt;request-&gt;queryParams);
        $dataProvider1 = $searchModel1-&gt;search(Yii::$app-&gt;request-&gt;queryParams);
        $dataProvider2 = $searchModel2-&gt;search(Yii::$app-&gt;request-&gt;queryParams);
          $model = $this-&gt;findModel($id);
  
          if ($model-&gt;load(Yii::$app-&gt;request-&gt;post()) &amp;&amp; $model-&gt;save()) {
              return $this-&gt;redirect(['view', 'id' =&gt; $model-&gt;IDBibliografia]);
          }
  
          return $this-&gt;render('update', [
              'model' =&gt; $model,
              'dataProvider' =&gt; $dataProvider,
              'dataProvider1' =&gt; $dataProvider1,
              'dataProvider2' =&gt; $dataProvider2,
              'searchModel' =&gt; $searchModel,
              'searchModel1' =&gt; $searchModel1,
              'searchModel2' =&gt; $searchModel2
          ]);
      }
  </code></pre>
  <p>I want, after saving, to return to the previous page. So the problem is in redirect raw. So, I click the button from the index, to go to the update action. Then, when I save the update, I want to return to index (but it need to be the same previous page with the same previous Url). I found various solution on Stack, but anything can help me.
  I need help, thank you!!!!</p>