fix: Documents with images exported as HTML have broken images

closes #4822
This commit is contained in:
Tom Moor
2023-02-04 14:04:38 -05:00
parent 8b28d6f6e0
commit 534eeacc97

View File

@@ -458,7 +458,10 @@ router.post(
if (accept?.includes("text/html")) {
contentType = "text/html";
content = await DocumentHelper.toHTML(document);
content = await DocumentHelper.toHTML(document, {
signedUrls: true,
centered: true,
});
} else if (accept?.includes("application/pdf")) {
throw IncorrectEditionError(
"PDF export is not available in the community edition"