# HG changeset patch # User Marcin Kuzminski # Date 2017-04-18 12:34:05 # Node ID f546f2f7147934420d09030b59f7ed9469b740d3 # Parent d43cef7526560f068b5432b9fc59e78b17920eac emails: fix url for user registration to be a fully qualified path. diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py --- a/rhodecode/lib/helpers.py +++ b/rhodecode/lib/helpers.py @@ -1916,9 +1916,9 @@ def get_last_path_part(file_node): def route_url(*args, **kwds): """ - Wrapper around pyramids `route_url` function. It is used to generate - URLs from within pylons views or templates. This will be removed when - pyramid migration if finished. + Wrapper around pyramids `route_url` (fully qualified url) function. + It is used to generate URLs from within pylons views or templates. + This will be removed when pyramid migration if finished. """ req = get_current_request() return req.route_url(*args, **kwds) diff --git a/rhodecode/templates/email_templates/user_registration.mako b/rhodecode/templates/email_templates/user_registration.mako --- a/rhodecode/templates/email_templates/user_registration.mako +++ b/rhodecode/templates/email_templates/user_registration.mako @@ -19,9 +19,9 @@ A new user `${user.username}` has regist ## BODY GOES BELOW - + - +

${_('New user %(user)s has registered on %(date)s') % {'user': user.username, 'date': h.format_date(date)}}

${_('New user %(user)s has registered on %(date)s') % {'user': user.username, 'date': h.format_date(date)}}

${_('Username')} ${user.username}
${_('Full Name')}${user.firstname} ${user.lastname}
${_('Email')}${user.email}
${_('Profile')}${h.route_path('user_profile', username=user.username, qualified=True)}
${_('Profile')}${h.route_url('user_profile', username=user.username)}
\ No newline at end of file