Skip to content

Commit

Permalink
Fix wrong PDF download route (#54)
Browse files Browse the repository at this point in the history
  • Loading branch information
JasminBektic committed Jan 11, 2024
1 parent 70b7474 commit 4151b8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/js/document/printpages/pdf_preview.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
});
Expand Down

0 comments on commit 4151b8a

Please sign in to comment.