From 90a7661dde8ea5560ab9c54e1182001a8ce988ae Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Tue, 18 Apr 2017 14:34:05 +0200 Subject: [PATCH] emails: fix url for user registration to be a fully qualified path. --- rhodecode/lib/helpers.py | 6 +++--- rhodecode/templates/email_templates/user_registration.mako | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/rhodecode/lib/helpers.py b/rhodecode/lib/helpers.py index f8539ebd..29086624 100644 --- 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 index b1875085..1ce5784a 100644 --- a/rhodecode/templates/email_templates/user_registration.mako +++ b/rhodecode/templates/email_templates/user_registration.mako @@ -19,9 +19,9 @@ ${self.plaintext_footer()} ## 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