From caf1b8e9d8461097b90be19e09f46ecb00eadf4a Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 6 Jul 2023 10:51:59 +0200 Subject: [PATCH 1/3] fix email-link --- backend/src/emails/templates/addedContributionMessage/html.pug | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/emails/templates/addedContributionMessage/html.pug b/backend/src/emails/templates/addedContributionMessage/html.pug index b47bd4730..7865b2099 100644 --- a/backend/src/emails/templates/addedContributionMessage/html.pug +++ b/backend/src/emails/templates/addedContributionMessage/html.pug @@ -9,6 +9,6 @@ block content h2= t('emails.addedContributionMessage.readMessage') div(class="p_content")= t('emails.addedContributionMessage.toSeeAndAnswerMessage') - a.button-3(href=`${communityURL}contribution`) #{t('emails.general.toAccount')} + a.button-3(href=`${communityURL}community/contributions`) #{t('emails.general.toAccount')} include ../includes/doNotReply.pug From 5657798016cca199fb7a450d9288c50ca2c33d55 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 6 Jul 2023 11:03:34 +0200 Subject: [PATCH 2/3] fix snapshot --- backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap b/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap index 5fedeed64..fb3a590e4 100644 --- a/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap +++ b/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap @@ -484,7 +484,7 @@ exports[`sendEmailVariants sendAddedContributionMessageEmail result has the corr

Read and reply to message

-
To view and reply to the message, go to the “Creation” menu in your Gradido account and click on the “My contributions” tab.
To account +
To view and reply to the message, go to the “Creation” menu in your Gradido account and click on the “My contributions” tab.
To account
Please do not reply to this email.
From 6a440e18b50ad64be084a17b30a6a4e9ab40a3d4 Mon Sep 17 00:00:00 2001 From: Ulf Gebhardt Date: Thu, 6 Jul 2023 11:07:57 +0200 Subject: [PATCH 3/3] fix email link to have correct url text --- .../src/emails/__snapshots__/sendEmailVariants.test.ts.snap | 6 +++--- .../emails/templates/includes/contributionDetailsCTA.pug | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap b/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap index fb3a590e4..f05291eab 100644 --- a/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap +++ b/backend/src/emails/__snapshots__/sendEmailVariants.test.ts.snap @@ -652,7 +652,7 @@ exports[`sendEmailVariants sendContributionConfirmedEmail result has the correct

Contribution details

To see your common good contributions and related messages, go to the “Creation” menu in your Gradido account and click on the “My contributions” tab.
To account -
Or copy the link into your browser window.
http://localhost/community/contribution +
Or copy the link into your browser window.
http://localhost/community/contributions
Please do not reply to this email.
@@ -820,7 +820,7 @@ exports[`sendEmailVariants sendContributionDeletedEmail result has the correct h

Contribution details

To see your common good contributions and related messages, go to the “Creation” menu in your Gradido account and click on the “My contributions” tab.
To account -
Or copy the link into your browser window.
http://localhost/community/contribution +
Or copy the link into your browser window.
http://localhost/community/contributions
Please do not reply to this email.
@@ -988,7 +988,7 @@ exports[`sendEmailVariants sendContributionDeniedEmail result has the correct ht

Contribution details

To see your common good contributions and related messages, go to the “Creation” menu in your Gradido account and click on the “My contributions” tab.
To account -
Or copy the link into your browser window.
http://localhost/community/contribution +
Or copy the link into your browser window.
http://localhost/community/contributions
Please do not reply to this email.
diff --git a/backend/src/emails/templates/includes/contributionDetailsCTA.pug b/backend/src/emails/templates/includes/contributionDetailsCTA.pug index fc6075314..fb2906419 100644 --- a/backend/src/emails/templates/includes/contributionDetailsCTA.pug +++ b/backend/src/emails/templates/includes/contributionDetailsCTA.pug @@ -4,4 +4,4 @@ div(class="p_content")= t('emails.contribution.toSeeContributionsAndMessages') a.button-3(href=`${communityURL}community/contributions`) #{t('emails.general.toAccount')} div(class="p_content")= t('emails.general.orCopyLink') -a.clink(href=`${communityURL}community/contributions`) #{`${communityURL}community/contribution`} \ No newline at end of file +a.clink(href=`${communityURL}community/contributions`) #{`${communityURL}community/contributions`} \ No newline at end of file