backdrop-contrib / metatag

Add structured metadata, aka "meta tags", for various pages on your site.
GNU General Public License v2.0
3 stars 15 forks source link

Wrong field_image default values #72

Closed robertgarrigos closed 3 years ago

robertgarrigos commented 3 years ago

The default token for field_image is wrong, as it prints an "Array" string instead of the image url. Its need to be changed to [node:field_image:?] instead of [node:field_image]

However, this still is not enough. This [node:field_image:?] token does print a url image, but a wrong one. It prints:

<base_url>/files/styles/%3F/public/field/image/<image_name>

but it should be:

<base_url>/files/styles/<image_style>/public/field/image/<image_name>

This is, instead of the image style name it prints "%3F".

robertgarrigos commented 3 years ago

No, that's not right. The problem was with Entity tokens module, which messes all up. Disabled it and everything goes well again.