From 8444b5e9d144fc5c1cb7732da87b0a323684c4d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Wolfgang=20Hu=C3=9F?= Date: Wed, 20 Oct 2021 12:41:05 +0200 Subject: [PATCH] Change notification e-mails settings page link MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Letícia Leal Moreira --- backend/src/middleware/helpers/email/templateBuilder.js | 3 ++- .../middleware/helpers/email/templates/de/notification.html | 2 +- .../middleware/helpers/email/templates/en/notification.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/middleware/helpers/email/templateBuilder.js b/backend/src/middleware/helpers/email/templateBuilder.js index 8098b38fe..12624f5ac 100644 --- a/backend/src/middleware/helpers/email/templateBuilder.js +++ b/backend/src/middleware/helpers/email/templateBuilder.js @@ -98,7 +98,8 @@ export const wrongAccountTemplate = ({ email }) => { export const notificationTemplate = ({ email, notification }) => { const actionUrl = new URL('/notifications', CONFIG.CLIENT_URI) - const renderParams = { ...defaultParams, name: notification.to.name, actionUrl } + const settingsUrl = new URL('/settings/notifications', CONFIG.CLIENT_URI) + const renderParams = { ...defaultParams, name: notification.to.name, settingsUrl, actionUrl } let content switch (notification.to.locale) { case 'de': diff --git a/backend/src/middleware/helpers/email/templates/de/notification.html b/backend/src/middleware/helpers/email/templates/de/notification.html index b3c60b26e..d935424be 100644 --- a/backend/src/middleware/helpers/email/templates/de/notification.html +++ b/backend/src/middleware/helpers/email/templates/de/notification.html @@ -71,7 +71,7 @@ diff --git a/backend/src/middleware/helpers/email/templates/en/notification.html b/backend/src/middleware/helpers/email/templates/en/notification.html index 58cbffd6f..168b21864 100644 --- a/backend/src/middleware/helpers/email/templates/en/notification.html +++ b/backend/src/middleware/helpers/email/templates/en/notification.html @@ -70,7 +70,7 @@
-

PS: Möchtest du keine E-Mails mehr erhalten, dann ändere deine PS: Möchtest du keine E-Mails mehr erhalten, dann ändere deine Benachrichtigungseinstellungen.

-

PS: If you don't want to receive e-mails anymore, change your PS: If you don't want to receive e-mails anymore, change your notification settings.