Add permalink to pdf and email payloads