错误的Yii :: app() - > createAbsoluteUrl()如果在错误404页面中调用

If I have the following route in config file:

'http://<domain:\w+>.com/page_example' => 'controllername',

When I call Yii::app()->createAbsoluteUrl('controllername') in a view of a custom error 404 page, Yii creates the following link:

http://example.com/controllername

when it should create the route:

http://example.com/page_example

It only happens on error pages, main config error handler is defined as:

'errorHandler'=>array(
            'errorAction'=>'site/error',
        ),