localeurls icon indicating copy to clipboard operation
localeurls copied to clipboard

Redirect issue Page Not Found

Open izemize opened this issue 12 years ago • 2 comments

I have redirected to this wrong url if page open

        'request'=>array(
            'enableCsrfValidation'=>false,
            'csrfTokenName'=>'z3us',
            'enableCookieValidation'=>false,
            'class'=>'ext.localeurls.LocaleHttpRequest',
            'redirectDefault'=>false,
            'languages'=>array(
                'es'=>'Spain',
                'ru'=>'Russian',
                'tw'=>'Chinese',
                'en'=>'English',
                'ae'=>" الإمارات العربيّة المتّحدة ",
                'hu'=>'Magyar',
                'sk'=>'Slovak',
                'ja'=>'日本国',
            ),
        ),

http://z3us.sytes.net/hu/6844cb9b3a818f7088c7c5d0bc845e16f1bd18cbs:2:%22hu%22;/

izemize avatar May 18 '13 12:05 izemize

Have you set your default language to hu with 'language' => 'hu' in your app configuration?

mikehaertl avatar May 20 '13 08:05 mikehaertl

Also your languages array is not correct: The keys are, what should be used in URL, and the values must be valid language codes.

mikehaertl avatar May 20 '13 08:05 mikehaertl