zii.widgets.CMenu, what to put in 'url' to link to modules?

Hi,

I have a menu widget which I want to add some items from a module named "page". this is my coed:




$this->widget('zii.widgets.CMenu', array(

    'items'=>array(

        array('label'=>'link 1', 'url'=>array('page/default/form')),

        array('label'=>'link 2', 'url'=>array('page/default/list')),

    ),

));



it works fine in the sites homepage, the links point to the "/?r=page/default/form" as they should. but in moduless pages the links are pointed at "/?e=page/page/default/form" which is a 404 error.

how can I fix this?

Thanks :)

add ‘/’ at the beginning to make the url absolute:




$this->widget('zii.widgets.CMenu', array(

    'items'=>array(

        array('label'=>'link 1', 'url'=>array('/page/default/form')),

        array('label'=>'link 2', 'url'=>array('/page/default/list')),

    ),

));