#28567: Unclear documentation for 'next' parameter of set_language view
--------------------------------------+------------------------------------
     Reporter:  George Tantiras       |                    Owner:  (none)
         Type:  Bug                   |                   Status:  new
    Component:  Internationalization  |                  Version:  1.11
     Severity:  Normal                |               Resolution:
     Keywords:                        |             Triage Stage:  Accepted
    Has patch:  0                     |      Needs documentation:  1
  Needs tests:  0                     |  Patch needs improvement:  0
Easy pickings:  0                     |                    UI/UX:  0
--------------------------------------+------------------------------------

Comment (by George Tantiras):

 Thank you, indeed. The docs
 [https://docs.djangoproject.com/en/1.11/topics/i18n/translation/#the-set-
 language-redirect-view] read:


   After setting the language choice, Django looks for a next parameter in
 the POST or GET data. If that is found and Django considers it to be a
 safe URL (i.e. it doesn’t point to a different   host and uses a safe
 scheme), a redirect to that URL will be performed. Otherwise, Django may
 fall back to redirecting the user to the URL from the Referer header or,
 if it is not set, to /, depending on the nature of the request:

 And the example -I am using in my code where the problem appeared- has the
 following line:

 {{{
 input name="next" type="hidden" value="{{ redirect_to }}" />
 }}}

 However, it is not clear how can the variabe {{{ redirect_to }}} be set
 and it stays empty.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/28567#comment:7>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-updates/066.d12a4ef1f58e7c6db020c16bce1e727e%40djangoproject.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to