st4lk / django-solid-i18n-urls

[DEPRECATED] Use default language for urls without language prefix.
http://www.lexev.org/en/
Other
112 stars 29 forks source link

Default language problem #11

Closed alvaro-rm closed 8 years ago

alvaro-rm commented 9 years ago

Being 'en-us' the default language_code, when I try to open www.myweb.com/myView with a language code 'en-us' it opens the 'en-us' version. That makes sense. But when I try to open www.myweb.com/writeWhatYouWant/myView with a language code of 'en-us' it also opens the 'en-us' version and I do not understand why. The only possible URL for an "en-us" language code should be without any preffix so -->> www.myweb.com/myView If anyone opens www.myweb.com/XXXXXX/myView they should get a 404 saying that the urls do not match with any url in urls.py

Is that a bug? Am I doing anything wrong?

st4lk commented 9 years ago

Hi, alvaro-rm! Precise, what version of solid-i18n are you using? Is it v0.6.1? In this version #10 issue is implemented: default language (english in your case) can be accessed both by / and /en/ urls. But only by these urls, not /writeWhatYouWant/. Check example project, page http://127.0.0.1:8000/writeWhatYouWant/about/ respond 404.

st4lk commented 9 years ago

@alvaro-rm , can you please tell, are you still facing with some unexpected behaviour in current version of solid_i18n (v0.9.1) ?

st4lk commented 8 years ago

closing this issue, not enough information