diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -788,7 +788,7 @@ def urlify_commit(text_, repository=None try: conf = config['app_conf'] - URL_PAT = re.compile(r'%s' % conf.get('url_pat')) + URL_PAT = re.compile(r'%s' % conf.get('issue_pat')) if URL_PAT: ISSUE_SERVER_LNK = conf.get('issue_server_link') @@ -799,7 +799,7 @@ def urlify_commit(text_, repository=None if match_obj.group().startswith(' '): pref = ' ' - issue_id = match_obj.groups()[0] + issue_id = ''.join(match_obj.groups()) tmpl = ( '%(pref)s' '%(issue-prefix)s%(id-repr)s'