wagtailtrans
wagtailtrans copied to clipboard
render_language_selector tag doesn't take context, can't get request.GET
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.
- Python 3.8
- Django 3.1
- Wagtailtrans 2.2