mirror of
https://github.com/Hopiu/wagtail-modeltranslation.git
synced 2026-05-02 04:24:45 +00:00
HotFix: Fixed validation for wagtail_search whenever there was more than one parameter on the 'change_lang' template tag
This commit is contained in:
parent
a323535582
commit
6ef46d6cdc
1 changed files with 3 additions and 1 deletions
|
|
@ -55,7 +55,9 @@ def change_lang(context, lang=None, *args, **kwargs):
|
|||
translated_url = '/' + lang + '/' + path_components[0] + '/'
|
||||
if request.GET:
|
||||
translated_url += '?'
|
||||
for key, value in iteritems(request.GET):
|
||||
for count, (key, value) in enumerate(iteritems(request.GET)):
|
||||
if count != 0:
|
||||
translated_url += "&"
|
||||
translated_url += key + '=' + value
|
||||
return translated_url
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue