wagtailtrans icon indicating copy to clipboard operation
wagtailtrans copied to clipboard

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

Open urlsangel opened this issue 4 years ago • 0 comments

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

urlsangel avatar Sep 23 '20 14:09 urlsangel