From 5019ef0b6b480ff0509ed388aae3253d301834c1 Mon Sep 17 00:00:00 2001 From: Ben Spoon Date: Tue, 2 Aug 2016 16:10:04 -0700 Subject: [PATCH] emails: change the app_link_handler to return just a uri There is no need for an anchor tag any longer. --- util/useremails.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/util/useremails.py b/util/useremails.py index 7320c4155..a82255281 100644 --- a/util/useremails.py +++ b/util/useremails.py @@ -53,12 +53,8 @@ def send_email(recipient, subject, template_file, parameters, action=None): app_title = app.config['REGISTRY_TITLE_SHORT'] app_url = get_app_url() - def app_link_handler(url=None, title=None): - real_url = app_url + '/' + url if url else app_url - if not title: - title = real_url if url else app_title - - return '%s' % (real_url, title) + def app_link_handler(url=None): + return real_url = app_url + '/' + url if url else app_url parameters.update({ 'subject': subject,