diff --git a/app/helpers/user_to_project_notification.py b/app/helpers/user_to_project_notification.py index 964d579e..291287ed 100644 --- a/app/helpers/user_to_project_notification.py +++ b/app/helpers/user_to_project_notification.py @@ -1,10 +1,13 @@ from flask import render_template from .email import send_email +from flask import Flask, request def send_user_to_project_notification( email, name, app, template, subject, date, project_name, email_role, success): - html = render_template(template, - email=email, + client_base_url = f'https://{request.host}/register' + html = render_template(template, + email=email, + client_base_url=client_base_url, name=name, date= date, project_name = project_name, diff --git a/templates/user/anonymous_user_to_project.html b/templates/user/anonymous_user_to_project.html index 0fc48b8f..4ae048a6 100644 --- a/templates/user/anonymous_user_to_project.html +++ b/templates/user/anonymous_user_to_project.html @@ -186,7 +186,7 @@