Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Basically as the title suggests. I have a link to a pdf file, the file name has a space in it, so i am using %20 as an encoder...for example foo%20bar.pdf. The encoder is hard coded into the link, (eg %20 is written in the link /sites/default/files/foo520bar.pdf). When a user clicks said link, the result is a blank page with the word "undefined"
Unfortunately there are too many links to manually update each file and link (several thousand).
Please advise, thanks!
Comments
Comment #1
syntheticMedia CreditAttribution: syntheticMedia commentedI would like to add to this that any cck file fields that are clicked result in undefined as well, even those without url encoders. Any advice would be appreciated, thanks!
Comment #2
Sol Roth CreditAttribution: Sol Roth commentedI'm also having this issue
Comment #3
profelm CreditAttribution: profelm commentedI'm also running into this issue, but in D7.
Comment #4
profelm CreditAttribution: profelm commentedOut of curiosity, what does the
<a>
tag look like for what you are trying to click?I have been doing some debugging and it turns out that for my links which are not html pages should be requested with the option 'data-ajax="false"', and they were clickable. Another workaround is to set the 'rel' attribute be 'rel=external', and it works.
I found some other gunk in my "rel" tag due to Lightbox. At the moment, I'm planning on tackling this issue but have little development experience so it probably won't be done by me, haha.
Comment #4.0
profelm CreditAttribution: profelm commentedmade more descriptive