controller_language_set
Controller which sets the language as given in the code argument, and redirects the user back to the page given in the
p argument.
Arguments:
codeis the requested enabled language code and is normally supplied by thelanguage_selectdispatch path.pis the optional return URL and defaults to/.
Only same-site return URLs are accepted. The controller removes any existing language prefix, adds the newly selected language, and responds with a permanent redirect. The response is not cached or indexed.
<a href="{% url language_select code="nl" p=q.p %}">Nederlands</a>