The Open Source DocuSign Alternative.
TypeScript digital-signaturedocument-signingdocusign-alternativee-signatureesignesignaturenext-authnextjsopen-sourcepades-standardpdfpdf-signpdf-signaturepostgresqlprismaself-hostedsigningtypescript
fix: direct links for teams are generated wrong
Ephraim Atta-Duncan51ad6a6ff80e
diff --git a/packages/lib/server-only/template/create-document-from-direct-template.ts b/packages/lib/server-only/template/create-document-from-direct-template.tsindex 229851729..ce891e6ca 100644--- a/packages/lib/server-only/template/create-document-from-direct-template.ts+++ b/packages/lib/server-only/template/create-document-from-direct-template.ts@@ -481,7 +481,9 @@ export const createDocumentFromDirectTemplate = async ({const emailTemplate = createElement(DocumentCreatedFromDirectTemplateEmailTemplate, {recipientName: directRecipientEmail,recipientRole: directTemplateRecipient.role,- documentLink: `${formatDocumentsPath(document.team?.url)}/${document.id}`,+ documentLink: `${NEXT_PUBLIC_WEBAPP_URL()}${formatDocumentsPath(document.team?.url)}/${+ document.id+ }`,documentName: document.title,assetBaseUrl: NEXT_PUBLIC_WEBAPP_URL() || 'http://localhost:3000',});