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.
Token for image path for a particular style appends "%3Apath" to image style name part of path.
For example, the token returns:
http://www.mysite.com/sites/mysite.com/files/styles/xlarge%3Apath/public...
, when it should return:
http://www.mysite.com/sites/mysite.com/files/styles/xlarge/public/images...
happens with default and user generated styles.
happens with dev and rc2 versions.
Comment | File | Size | Author |
---|---|---|---|
#5 | imagecache_token-token_image_style_name_url-2744265-7.53.patch | 625 bytes | Gmaheux |
Comments
Comment #2
jonodunnett CreditAttribution: jonodunnett as a volunteer commentedGot around this using the token
[node:field_image_s_:xlarge:first]
instead of
[node:field_image_s_:xlarge:path]
Note that if there are multiple images then to get all of them use second, third, etc...
Comment #3
DamienMcKennaComment #4
alexloganlee CreditAttribution: alexloganlee commentedI can confirm this error. Happens in 7.x-1.0-rc2 as well.
Comment #5
Gmaheux CreditAttribution: Gmaheux commentedHello,
I encountered the same problem on the same version of the module. "%3A" is UTF-8 enconding of ":"
I don't now why but in the line 230 in .module file you send $token to the image_style_url api instead of $type which contains the name of the image style.
I attach the following patch to fix this error.
Best regards
Comment #6
monstrfolk CreditAttribution: monstrfolk commentedThis works.
Comment #7
monstrfolk CreditAttribution: monstrfolk commentedComment #8
monstrfolk CreditAttribution: monstrfolk commentedAlso fixed with https://www.drupal.org/node/2853037
Comment #9
monstrfolk CreditAttribution: monstrfolk commented