There are 2 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-f114beda-2553-4e2a-9a0e-5ed874767cf3 XWIKI-22694 Open

The output of Document#getExternalURL() in the PDF cover doesn't match the URL used to access XWiki

 
View issue   ยท   Add comment
 

2 updates

 
cid:jira-generated-image-avatar-32ced733-6f2b-4a4b-8c5e-f50566743538 Changes by Marius Dumitru Florea on 10/Dec/24 18:51
 
Summary: Links on cover page The output of Document#getExternalURL ( footnote ) are generated as localhost in the PDF export cover doesn't match the URL used to access XWiki
Description: While Follow these steps to reproduce:

* configure XWiki to use the Chrome Docker container for
generating PDFs (or a remote Chrome instance)
* create a custom
PDF template , link on and modify the cover page is field to also print:
{noformat}
$tdoc.externalURL
{noformat}
* register the
created as PDF template in the PDF export administration section
* export
a localhost one page to PDF using the custom PDF template
* check the cover page

*Expected*: the external URL printed in the cover page matches the URL used to access XWiki (same protocol, same domain, same port)
. Doesn't apply
*Actual*: the external URL printed on the cover page is the URL used by the headless Chrome instance
to content link access XWiki, which is different from the URL used by the user to access XWiki .