From 4151b8a26ec525078f9fd9d9d724996a9bbcfcfc Mon Sep 17 00:00:00 2001 From: Jasmin Bektic Date: Thu, 11 Jan 2024 09:42:59 +0100 Subject: [PATCH] Fix wrong PDF download route (#54) --- public/js/document/printpages/pdf_preview.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/js/document/printpages/pdf_preview.js b/public/js/document/printpages/pdf_preview.js index 47d6154..96f6542 100644 --- a/public/js/document/printpages/pdf_preview.js +++ b/public/js/document/printpages/pdf_preview.js @@ -92,7 +92,7 @@ pimcore.document.printpages.pdfpreview = Class.create({ style: "float: right; margin-top: 10px", handler: function () { var date = new Date(); - var url = Routing.generate('pimcore_bundle_document_printpage_pdfdownload', {id: this.page.id, download: 1, time: date.getTime()}); + var url = Routing.generate('pimcore_bundle_web2print_document_printpage_pdfdownload', {id: this.page.id, download: 1, time: date.getTime()}); pimcore.helpers.download(url); }.bind(this) });