﻿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
21749	LocaleMiddleware creates wrong redirects when combined with script prefix	Tilman Koschnick	nobody	"If a Django instance is mounted with a prefix, e.g. with 
{{{
WSGIScriptAlias /some_prefix /path/to/wsgi.py
}}}
and i18n_patterns are used, the generated redirect urls have the language prefix before the script prefix, e.g.:
{{{
http://host/some_prefix/some_path/ -> http://host/en/some_prefix/some_path/
}}}
Correct would be to put the language prefix between script prefix and the rest of the path:
{{{
http://host/some_prefix/some_path/ -> http://host/some_prefix/en/some_path/
}}}
The attached patch fixes this, pulling the required bits from request.META."	Bug	closed	Internationalization	1.6	Normal	duplicate		til@…	Unreviewed	1	0	0	0	0	0
