add_query_param should preserve previous querystring

This commit is contained in:
Camille Harang 2012-07-12 15:07:04 +02:00
parent 1f9a8e10e5
commit b0004c4398

View File

@ -4,7 +4,7 @@ register = Library()
def add_query_param(url, param):
return unicode(URLObject(url).with_query(param))
return unicode(URLObject(url).add_query_param(*param.split('=')))
register.filter('add_query_param', add_query_param)
register.filter('add_query_param', add_query_param)