wagtail / wagtailtrans

A Wagtail add-on for supporting multilingual sites
http://wagtailtrans.readthedocs.io/
BSD 3-Clause "New" or "Revised" License
104 stars 60 forks source link

render_language_selector tag doesn't take context, can't get request.GET #195

Open urlsangel opened 3 years ago

urlsangel commented 3 years ago

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.