Pagination in Cgridview not resetting when page revisited

On my application when a user access a page with pagination if select the second page and move to another page and return back via the menu it stays at the second page not returning to the first page.

here’s the model


 

 public function search()

    {


        $criteria = new CDbCriteria;

        /*All the criteria conditions to gather the data..*/

 return new CActiveDataProvider($this, array(

            'criteria' => $criteria,

            'sort' => $sort,

            'pagination' => array('pageSize' =>5),

        ));



The view





<?php $this->widget('booster.widgets.TbGridView', array(

    'id' => 'sales-activity-grid',

    'htmlOptions' => array('class' => 'grid-view hand-select-grid'),

    'type' => 'striped bordered condensed',

    'dataProvider' => $model->search(),

    'filter' => $model,

    'columns' => array(

'id',

'name'

 array(

            'class' => 'booster.widgets.TbButtonColumn',

            'buttons' => array(

                'view' => array(

                    'visible' => 'true',

                ),

                'update' => array(

                    'visible' => 'true',

                ),

                'delete' => array(

                    'visible' => 'true',

                ),

            ),

        ),



Is there a way to reset the pagination?

Thanks

You’re not using ajax, take a look at your url and you’ll see the page parameter…