Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
urlsangel opened this issue Sep 23, 2020 · 0 comments
Open

Comments

@urlsangel
Copy link

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant