On Thursday 02 February 2017 11:10:31 Reto Steffen wrote:

> But now I'm adding a third language and
> <input name="next" type="hidden" value="{{ redirect_to }}" />
> is redirecting to the "next" language

Common misconception. This is the URL to redirect to *after the 
language has been changed*. The redirect_to variable should be set in 
the view's context. This ensures you stay at the same page - just in 
another language.

So if the language isn't set properly, something else is going wrong.

-- 
Melvyn Sopacua

-- 
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to django-users+unsubscr...@googlegroups.com.
To post to this group, send email to django-users@googlegroups.com.
Visit this group at https://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/2650499.OKoDLfCkjx%40devstation.
For more options, visit https://groups.google.com/d/optout.

Reply via email to