﻿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
26271	i18n_patterns() creates invalid url if no language is active	Marten Kenbeek	nobody	"If `get_language()` returns `None`, `reverse()` in combination with `i18n_patterns()` will create an url prefixed with `/None/` as the language code. The `LocaleMiddleware` will activate a different language (it falls back to `settings.LANGUAGE_CODE` if no other language is found), and the prefix will cause a 404. 

This requires special-casing of `if language_code is None` in [https://github.com/django/django/blob/b41268135995cef46d40e550f9301fab20cf330d/django/urls/resolvers.py#L393 LocaleRegexURLResolver]. "	Bug	closed	Core (URLs)	dev	Normal	fixed			Ready for checkin	1	0	0	0	0	0
