-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
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
Default locale not working #1520
Comments
Anyone please? |
I am not sure I understand what you mean with that. Can you please provide some details that will allows us to understand what exactly you are doing and what you expected to happen? |
Sure. I copied everything in terms of how the localisation is setup in this demo, into a new 7.1 project. It "works", but not as it should (or I imagine it should work). For example, I go to:
But if I go to:
The exact same thing happens for other controllers, for example If I go to:
But if I go to:
So the default locale is not being set when there is no locale specified, this is my main issue. The configuration is copied exactly as in this project. If this is the default behaviour; it's not good; it should add the default locale when one is not specified and redirect. If this is not the default behaviour; it means I have an issue somewhere and I would appreciate some directions. Thanks |
Well, if we are talking about your own application (even if some of its code is borrowed from the demo application), please use on of the Symfony support channels (Slack or StackOverflow). If you experience an issue with the demo itself, we will need more information. |
Hello,
I cloned the project several times and tested over and over, it seems that the default locale (en) is not applied with there is no locale specified. This is very bad and will cause a lot off 404's and other issues; shouldn't
RedirectToPreferredLocaleSubscriber
do this by default? Or what is the correct solution for this?Please advise, thanks.
The text was updated successfully, but these errors were encountered: