From 06e0ba239d91ab36aae98a2a5786322afe6de2e6 Mon Sep 17 00:00:00 2001 From: tobes Date: Fri, 3 Aug 2012 17:38:58 +0100 Subject: [PATCH] [#2302] Don't break on unicode url convert to str --- ckan/lib/helpers.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/ckan/lib/helpers.py b/ckan/lib/helpers.py index 8fe73d6a013..56b19e49628 100644 --- a/ckan/lib/helpers.py +++ b/ckan/lib/helpers.py @@ -92,6 +92,9 @@ def url_for_static(*args, **kw): """Create url for static content that does not get translated eg css, js wrapper for routes.url_for""" + # make sure that if we specify the url that it is not unicode + if args: + args = (str(args[0]),) + args[1:] my_url = _routes_default_url_for(*args, **kw) return my_url