I need to add the query string (if present) to the URL when switching language, but the request object is not available via the render_language_selector inclusion tag.
Adding takes_context=True to the tag, or by allowing optional arguments to be passed would allow access to the request object.
django.template.context_processors.request is in my existing context processors.
I need to add the query string (if present) to the URL when switching language, but the
request
object is not available via therender_language_selector
inclusion tag.Adding
takes_context=True
to the tag, or by allowing optional arguments to be passed would allow access to the request object.django.template.context_processors.request
is in my existing context processors.