﻿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
25096	set_language view does not redirect to specified language if next is not set	Carl Marshall	nobody	"[http://stackoverflow.com/questions/31306277/django-1-8-set-language-view-does-not-redirect-to-specified-language?sfb=2]

Most of what I'm about to say has been documented in more detail on the above stack overflow link.

In short, posting to set_language with a language code and no next value results in the language code being ignored and not changed, because the second step of determining the redirect url does not account for the fact that having i18n urls enabled means that the REFERRER url contains the previous language code, which is what is picked up by the locale middleware first, which then discards the session data saved by set_language in the first place.

I would suggest that this function is modified to remove the language code prefix from the REFERRER url, so that the resulting redirect goes to the current page and with the newly selected language."	Uncategorized	closed	Internationalization	1.8	Normal	duplicate	i18n		Unreviewed	0	0	0	0	0	0
