diff --git a/kallithea/lib/helpers.py b/kallithea/lib/helpers.py
--- a/kallithea/lib/helpers.py
+++ b/kallithea/lib/helpers.py
@@ -1034,7 +1034,7 @@ def urlify_text(s, repo_name=None, link_
hash_ = match_obj.group('hash')
if hash_ is not None and repo_name is not None:
from kallithea.config.routing import url # doh, we need to re-import url to mock it later
- return '%(hash)s' % {
+ return '%(hash)s' % {
'url': url('changeset_home', repo_name=repo_name, revision=hash_),
'hash': hash_,
}