CGridview - CLinkcolumn URL and spaces

I am trying to use CLinkColumn to create a link with a string that has spaces in it. And it turn the spaces into %20. I want it to be dashes or + sign.

Thank You! ::)

That is really strange, according to the documentation the label should not be html-encoded.

Are you sure you are not encoding the label?

Consider labelExpression

I mean’t in the hyperlink not the label. like this


array(

   		'class'=>'CLinkColumn',

    		'header'=>'Topic',

    		'labelExpression'=>'$data->topic',

    		'urlExpression'=>'"http://localhost/".$data->title'

		),