#31540: i18n URLs are not matched against the fallback language.
--------------------------------------+------------------------------------
     Reporter:  osxisl                |                    Owner:  nobody
         Type:  Bug                   |                   Status:  new
    Component:  Internationalization  |                  Version:  3.0
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  0
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by Sjoerd Job Postmus):

 The way I see it, there are two different concerns that need attention:

 - Make it so that when `id-gibberish/` is used in the path, that the
 knowledge about `id-gibberish` is passed from `LocaleMiddleware` to
 `LocalePrefixPattern`. I think this is at least a bug, and I was also able
 to reproduce this locally.
 - Make it configurable whether or not `LocaleMiddleware` should be lenient
 in parsing the language from `id-gibberish` to "looks enough like `id` to
 me". If we'd change this "hard" from lenient to "must match strictly" this
 might break current applications. See the `en-us` vs `en-gb` example.

 The `prefix_default_language` does not actually seem to influence the
 behaviour. Both `an-example` (Aragonese) and `as-always` (Assemese) would
 be affected.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/31540#comment:9>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/064.a1a5d74b68aa145da3b3cfe034611063%40djangoproject.com.

Reply via email to