﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27402	When using i18n_patterns and prefix_default_language=False, 404 page redirects incorrectly	Hovi	nobody	"Hello,

I just migrated to 1.10.2 using new cool localization with prefix_default_language=False, replacing solid-i18n-urls:
https://github.com/st4lk/django-solid-i18n-urls
Only smaller issue is, that whenever I go to 404 page, I get redirected to /en/THE_OLD_URL/ (en is default language in my case).

My guess is bug in LocaleMiddleware, language_path variable is being constructed always using language code even in cases when there shouldn't be (default language).
I attached simple fix, that seems to work it out for me."	Bug	closed	Internationalization	1.10	Normal	fixed			Accepted	1	0	0	0	0	0
