I use:
'urlManager'=>array( 'showScriptName'=>false, 'urlSuffix'=>'.html', 'urlFormat'=>'path', 'rules' => array( ... )
but in CWebUser i found next lines:
public function getReturnUrl() { return $this->getState('_returnUrl',Yii::app()->getRequest()->getScriptUrl()); }