From d6cce9036d2f9cff622afc796c1aa42a2b1119e0 Mon Sep 17 00:00:00 2001 From: Toby Date: Mon, 20 Feb 2012 17:56:14 +0000 Subject: [PATCH] bug fix for when app in subdir --- ckan/lib/helpers.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ckan/lib/helpers.py b/ckan/lib/helpers.py index 3619a0a4336..e1a608d0165 100644 --- a/ckan/lib/helpers.py +++ b/ckan/lib/helpers.py @@ -91,7 +91,7 @@ def _add_i18n_to_url(url_to_amend, **kw): # we need to strip the root from the url and the add it before # the language specification. url = url_to_amend[len(root):] - url = '/%s%s%s' % (root, locale, url) + url = '%s/%s%s' % (root, locale, url) return url class Message(object):