Skip to content

Commit

Permalink
bug fix for when app in subdir
Browse files Browse the repository at this point in the history
  • Loading branch information
tobes committed Feb 20, 2012
1 parent 017feb0 commit d6cce90
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ckan/lib/helpers.py
Expand Up @@ -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):
Expand Down

0 comments on commit d6cce90

Please sign in to comment.