From 6d55f917eab3cb2f5f3a90c5a18f03b625d60021 Mon Sep 17 00:00:00 2001 From: Amruth Pillai Date: Sat, 12 Mar 2022 17:41:16 +0100 Subject: [PATCH] fix(server): reform url for pdf generation and download fix #661 --- server/src/printer/printer.service.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/src/printer/printer.service.ts b/server/src/printer/printer.service.ts index ba926dadd..8671f5ac0 100644 --- a/server/src/printer/printer.service.ts +++ b/server/src/printer/printer.service.ts @@ -45,7 +45,7 @@ export class PrinterService implements OnModuleInit, OnModuleDestroy { const pdf = await PDFDocument.create(); const directory = join(__dirname, '..', 'assets/exports'); const filename = `RxResume_PDFExport_${nanoid()}.pdf`; - const publicUrl = `/api/exports/${filename}`; + const publicUrl = `/assets/exports/${filename}`; for (let index = 0; index < resumePages.length; index++) { await page.evaluate((page) => (document.body.innerHTML = page.innerHTML), resumePages[index]);