The links in the downloaded pdf are not working but they are working on the website.

Created on 18 August 2023, over 1 year ago
Updated 23 August 2023, over 1 year ago

Problem/Motivation

The links in the downloaded pdf are not working but they are working on the website. This happens only if the filename has special character like !, & etc

Steps to reproduce

Upload a file whose name contains ! or &.
Suppose file name is demo!.txt
After uploading it's url will show - sites/default/files/2023-07/demo%21.txt
After generating pdf for that same node the url will show - sites/default/files/2023-07/demo%%2521.txt

Proposed resolution

I am assuming that the file url is double encoded while generating the pdf. We can prevent file url for being double encoded.

🐛 Bug report
Status

Needs review

Version

2.4

Component

User interface

Created by

🇮🇳India Devendra Mishra Noida

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024