Commit 863bbe76 by Tom Christie

Parse url when adding query param.

parent f2110739
...@@ -5,7 +5,7 @@ register = Library() ...@@ -5,7 +5,7 @@ register = Library()
def add_query_param(url, param): def add_query_param(url, param):
(key, sep, val) = param.partition('=') (key, sep, val) = param.partition('=')
return unicode(URLObject(url) & (key, val)) return unicode(URLObject.parse(url) & (key, val))
register.filter('add_query_param', add_query_param) register.filter('add_query_param', add_query_param)
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment