Changes between Initial Version and Version 1 of Ticket #34515, comment 11
- Timestamp:
- Apr 26, 2023, 2:40:50 AM (19 months ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Ticket #34515, comment 11
initial v1 1 @Sarah: yes, it is the same problem. After investigating the code, the change in behavior is linked to the fact that `get_language_from_path` returns `None` when the url is not prefixed. So, the cookie is used (or the `Accept-Language` header sent by the browser).1 @Sarah: yes, it is the same problem. After investigating the code, the change in behavior is linked to the fact that `get_language_from_path` returns `None` when the url is not prefixed. So, the cookie is used or the `Accept-Language` header sent by the browser. In my case, I think it is the HTTP header. 2 2 3 3 @David: thanks for your contribution, but I do not fully agree. If `prefix_default_url` is `True`, the language is correctly detected by django based on the URL. If I set `prefix_default_url` to `False` I expect the same behavior for the default language without prefix. When I decide do use `i18n_patterns` at least (I have just added this tag to the ticket).