pmochine / Laravel-Tongue

🎉 Finally a subdomain localization that works how you want it to work. 🌐
MIT License
40 stars 7 forks source link

Reverse alias operation #47

Closed jeffsmor closed 1 year ago

jeffsmor commented 1 year ago

Hi man, excelent package you provide to us!

I have a config scenario...

   'aliases' => [
        'das' => 'pt-BR',
    ],

  'acceptLanguage' => true,

  'prevent_redirect' => env('PREVENT_REDIRECT', false),

When I try to get the app index page using a browser with pt-BR default language I got a redirection error.

Instead redirect to das.domain.test, the result is pt_br.domain.test.

Of course when I try to get directly das.domain.test I got te correct pt-BR locale.

Is it right?

Tks.

Jefferson