Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URL is not redirecting to the exact Locale in the specific country #737

Open
Naveedali1234 opened this issue Aug 6, 2020 · 0 comments
Open

Comments

@Naveedali1234
Copy link

Hi there,

first of all, i really appreciate your effort for making this package and i really like it.

i am having some issue in here which i describe along with code. so i will first add my code.

Route::group(['prefix' => LaravelLocalization::setLocale(), 'middleware' => ['localizationRedirect', 'localeViewPath' ]], function(){ all the routes of my appllication here });

i have registered the middlewares as well and in above code i have other groups of routes as well when have prefix as well which means it would be nested urls.

i have configured everything according to the instructions.
i have configured 3 locales for now.

  • french fr
  • Italy it
  • english en (which is by default)

when i try to access it through from Italy, it is not automatically redirecting to www.example.com/it and i want it in this way, when i access from France then it should show the url www.example.com/fr and if i access it from Italy then it should show www.example.com/it or if in any other language then it should show default locale in url.

Your help will be really appreciated.

thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant