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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

jonodunnett created an issue. See original summary.

jonodunnett’s picture

Priority: Major » Minor

Got 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...

DamienMcKenna’s picture

Priority: Minor » Normal
Issue tags: +Needs tests
alexloganlee’s picture

I can confirm this error. Happens in 7.x-1.0-rc2 as well.

Gmaheux’s picture

Hello,

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

monstrfolk’s picture

Status: Active » Reviewed & tested by the community

This works.

monstrfolk’s picture

Status: Reviewed & tested by the community » Needs review
monstrfolk’s picture

monstrfolk’s picture

Status: Needs review » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.