Yii Cgridview Generate Bad Link

I have a problem with Yii cgridview… It was work properly, but I don’t know when it becomes error… When I checked with inspect element, I found that the pager is generate a bad link for the page link. That’s why the web will error when I click the next button.

The cgridview generate this bad link:


<a href="/gso/admin/userContact/index/admin%2FuserContact%2Findex//UserContact_page/2">2</a>

It must be:


<a href="/gso/admin/userContact/index/UserContact_page/2">2</a>

Why it can happen? They duplicate some url and made it error :(

Please help me… thank you

can u post you cgridview Code? Please

I also have the problem. The code produces site%2Fgallery_mcc//GalleryImage_page/2.mcc instead of site/gallery/GalleryImage_page/2.mcc. Im using yii-1.1.13.e9e4a0

-----view ----------

<?php

            &#036;this-&gt;widget('zii.widgets.CListView', array(


                'dataProvider' =&gt; &#036;dataProvider,


                'itemView' =&gt; '_galleryview',


            ));


            ?&gt;

----in the controller ----

$dataProvider = new CActiveDataProvider(‘GalleryImage’, array(

        'criteria' =&gt; array(


            'order' =&gt; 'id DESC',


    ),'pagination'=&gt;array('pageSize'=&gt;18)));


    


    &#036;this-&gt;render('gallery', array(


        'dataProvider' =&gt; &#036;dataProvider,


    ));

anyone has a solution for this? please help us.