Commit 921f77a6 authored by fred's avatar fred

fix encoding issues in removing facets

parent 5b1088c6
......@@ -243,7 +243,7 @@ def remove_facet(facet_id, url, facet):
x[0] == 'selected_facets' and x[1] == facet)]
query = '&'.join(['%s=%s' % x for x in query_string])
url = urlparse.urlunsplit([scheme, netloc, path, query, None])
return re.sub(r'&page=\d+', '', url)
return unicode(re.sub(r'&page=\d+', '', url), 'utf-8')
@register.filter
def remove_tag_facet(url, facet):
......
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