urlManager URL issue

I’m using Yii 1.1.16 on a CentOS server with PHP and Apache/Mysql.

I have the following set in my main.php conf file:











This is so that when I call the admin action for every controller the admin appears first in the URL. The admin action is a list of models, for example categories.

It all works fine, except the CLinkPager which I’m calling like this in the view:

<?php $this->widget('CLinkPager',array('pages'=>$pages)); ?>

This is how the $pages variable is built in the Conroller:

$criteria=new CDbCriteria; // critaria are empty for this scenario

$pages=new CPagination(Categories::model()->count($criteria));



Now on every one of my controller admin lists, for example, the “CategoriesController”, the URL I’m on looks like this:


but in the pagination the page links that are generated look like this:


shouldn’t it be



What am I missing?