Wrong createAbsoluteUrl() and no translations in error 404 page

Hi! I have a problem when calling


from a 404 error page defined in main config file as




All created links point to the controller and action not to the defined route. Also translations files messages doesn’t work (It is a multilingual website using a custom UrlManager). In all other pages It works perfectly fine, the problem happens only when errorHandler is called. I’m doing something wrong?

Thank you very much