diff --git a/django/middleware/locale.py b/django/middleware/locale.py
index 65a3893..74566a1 100644
a
|
b
|
class LocaleMiddleware(MiddlewareMixin):
|
37 | 37 | |
38 | 38 | if response.status_code == 404 and not language_from_path and i18n_patterns_used: |
39 | 39 | language_path = '/%s%s' % (language, request.path_info) |
| 40 | if i18n_patterns_used and not prefixed_default_language and str(language) == str(settings.LANGUAGE_CODE): |
| 41 | language_path = '/%s' % (request.path_info) |
40 | 42 | path_valid = is_valid_path(language_path, urlconf) |
41 | 43 | path_needs_slash = ( |
42 | 44 | not path_valid and ( |