From 19b91000ce75cf3c43c9b40f99fb8804720e0d3c Mon Sep 17 00:00:00 2001 From: Amir Angel <36531255+17Amir17@users.noreply.github.com> Date: Sun, 10 Nov 2024 11:10:18 +0700 Subject: [PATCH] Add Order Code To Error (#2146) --- apps/passport-server/resources/one-click-page/error.html | 2 +- .../src/routing/routes/genericIssuanceRoutes.ts | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/apps/passport-server/resources/one-click-page/error.html b/apps/passport-server/resources/one-click-page/error.html index 3624fc3cf3..d63c492d95 100644 --- a/apps/passport-server/resources/one-click-page/error.html +++ b/apps/passport-server/resources/one-click-page/error.html @@ -267,7 +267,7 @@ contactSupportBtn.onclick = function (e) { window.open( - `mailto:{{zupassSupport}}?subject=Ticket Support ({{email}})&body=Hi, I'd like to request support on finding my ticket in Zupass. My email(s) are listed in the subject of this email.` + `mailto:{{zupassSupport}}?subject=Ticket Support #{{orderCode}} ({{email}})&body=Hi, I'd like to request support on finding my ticket in Zupass. My email(s) are listed in the subject of this email.` ); } diff --git a/apps/passport-server/src/routing/routes/genericIssuanceRoutes.ts b/apps/passport-server/src/routing/routes/genericIssuanceRoutes.ts index 4941058c9b..893bf9b63d 100644 --- a/apps/passport-server/src/routing/routes/genericIssuanceRoutes.ts +++ b/apps/passport-server/src/routing/routes/genericIssuanceRoutes.ts @@ -867,7 +867,8 @@ export function initGenericIssuanceRoutes( const file = await readFileWithCache(errorFilePath); const rendered = Mustache.render(file, { zupassSupport: ZUPASS_SUPPORT_EMAIL, - email: email + email: email, + orderCode: code }); res.send(rendered); }