CHtml::link() automatically include $_GET variables

I have a search form, it’s request method is get. On search result display page I have some link to other pages.

I am using CHtml::link() to generate hyperlinks. But these links auto including $_GET params and values. I don’t understand why this is happening, How I can remove these extra params?

On my search display page

<?php echo CHtml::link(CHtml::encode($data->restaurant_name),array('id' => $data->restaurant_id)); ?>

<?php echo CHtml::link(CHtml::encode($data->restaurant_name)); ?>

this will remove the id get parameter if this is what you need

Thanks a lot for your suggestion. I actually found my mistake. i forgot to specify view target.

it will be

<?php echo CHtml::link(CHtml::encode($data->restaurant_name),array('view', 'id' => $data->restaurant_id)); ?>