Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

Added confirm and cancel urls

Yevhenii Kulisidiccabf9625e27
diff --git a/src/common/templates/en/project-transfer.html b/src/common/templates/en/project-transfer.html
index 6002bd745..277289a22 100644
--- a/src/common/templates/en/project-transfer.html
+++ b/src/common/templates/en/project-transfer.html
@@ -1,2 +1,3 @@
Project name: {{name}}
-Confirmation URL: {{url}}
+Confirm URL: {{confirmUrl}}
+Cancel URL: {{cancelUrl}}
diff --git a/src/project/project.service.ts b/src/project/project.service.ts
index a9b5b3b30..d6f889925 100644
--- a/src/project/project.service.ts
+++ b/src/project/project.service.ts
@@ -651,12 +651,16 @@ export class ProjectService {
},
)
- const url = `${
+ const confirmUrl = `${
isDevelopment ? origin : PRODUCTION_ORIGIN
- }/projects/${projectId}/transfer?token=${actionToken.id}`
+ }/project/transfer/confirm?token=${actionToken.id}`
+ const cancelUrl = `${
+ isDevelopment ? origin : PRODUCTION_ORIGIN
+ }/project/transfer/cancel?token=${actionToken.id}`
await this.mailerService.sendEmail(email, LetterTemplate.ProjectTransfer, {
- url,
+ confirmUrl,
+ cancelUrl,
name,
})
}