Captcha Refresh Problem Multilanguage Urls

Hi everyone,

I’m encountering a strange problem with the captcha on a site.

Clicking on refresh captcha shows the following string in a blank page


{"hash1":646,"hash2":646,"url":"\/en\/captcha\/v\/526344817e8e4"}

at the URL


http://www.domain.com/en/captcha/refresh/1

instead of refreshing the captcha.

This seems to be related to the URL Manager but I don’t find any information about what the problem might be.

URL Manager is configured like the following:




  'urlManager' => array(

            'class' => 'application.components.UrlManager',

            'urlFormat' => 'path',

            'showScriptName' => false,

            'rules' => array(

                'login' => 'site/login',

                '<language:(de|en|fr|es)>/' => 'content/index',

                '<action:(protectedpage)>/*' => 'site/<action>',

                '<language:(de|en|fr|es)>/<action:(contact|login|logout|captcha)>/*' => 'site/<action>',

                '<language:(de|en|fr|es)>/<action:(protectedpage)>/*' => 'site/<action>',

                '<language:(de|en|fr|es)>/<action:(contact)>/*' => 'site/<action>',

                '<language:(de|en|fr|es)>/<controller:\w+>/<id:\d+>' => '<controller>/view',

                '<language:(de|en|fr|es)>/<controller:\w+>/<action:\w+>/<id:\d+>' => '<controller>/<action>',

                '<language:(de|en|fr|es)>/<controller:\w+>/<action:\w+>/*' => '<controller>/<action>',

                '<language:(de|en|fr|es)>/<module:\w+>/<controller:\w+>/<action:\w+>/*' => '<module>/<controller>/<action>',

            ),

        ),

As far as I know my URLs are working fine…

[font="Courier New"]http://www.domain.com/en/site/index

http://www.domain.com/en/contact[/font]

What is the problem?