mikehaertl / localeurls

Automatic locale/language management for URLs
10 stars 3 forks source link

Redirect issue Page Not Found #7

Open izemize opened 11 years ago

izemize commented 11 years ago

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;/

mikehaertl commented 11 years ago

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

mikehaertl commented 11 years ago

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