Fixing URLs in PDF generation & download