title: Yii not redirecting properly with the CController::redirect() function
body: <p>In a yii site I am creating I have a page with the url <code>http://localhost/administrator/restaurant/list</code>
  which shows the list of restaurants in a tabular format along with a delete button. The delete button points to <code>http://localhost/administrator/restaurant/delete/&lt;id&gt;</code>.</p>
  
  <p>The <code>actionDelete</code> of my controller is as follows :</p>
  
  <pre><code>public function actionDelete(){
          $model = Restaurants::model()-&gt;findByAttributes(
                                          array(
                                              'id'=&gt;$_GET['id'],
                                              'clientId'=&gt;Yii::app()-&gt;user-&gt;clientId
                                          ));
          $model-&gt;delete();
          Yii::app()-&gt;user-&gt;setFlash('success',Yii::t('error','Restaurant has been deleted successfully'));
          $this-&gt;redirect('restaurant/list',true);
      }
  </code></pre>
  
  <p>But on clicking the delete button, the row is getting deleted successfully from the database but instead of redirecting to <code>http://localhost/administrator/restaurant/list</code> the page is redirecting to <code>http://localhost/administrator/restaurant/delete/restaurant/list</code> and showing an error. Is there something wrong with the way I implemented the redirect function ?</p>