When a form is submitted and the email is generated the link for the PDF is invalid