silverstripe / cwp-pdfexport

Adds PDF export capability for CWP pages
BSD 3-Clause "New" or "Revised" License
4 stars 6 forks source link

Export PDF is downloaded without the styles when <% base_tag %> isn't used in templates #34

Open pack254 opened 1 year ago

pack254 commented 1 year ago

Note: I have found an issue when clicks a "View this page as PDF", then when I click on download the PDF, it was downloaded without the styles and layouts.

I have done the regression test and I have found if the <% base_tag %> is not existed in the Page.ss it brings this issue which I am not sure how is it relevant to this module.

Screen Shot 2023-08-04 at 1 19 09 PM

it seems it is storing the page as html on my local machine, then rendering using the file path. So assets would never render because it is looking for them in the directory it saved the file to.