Hey there,
first of all: great work guys, the metatag module is really a must-have and now even available for D8 :)
We use it on a Drupal 8 blog which lives in a subdirectory, e.g. www.site.com/blog/ and the extracted image URLs are wrong in that case.
Currently: www.site.com/blog/blog/sites/default/files/2016-03/team.jpg
Correct would be: www.site.com/blog/sites/default/files/2016-03/team.jpg
The problem seems to be the use of $base_url because both the base url AND the image path contain the subdirectory (/blog
).
I suggest to use $base_root in this case since the relative image path starts with a "/" and thus references www.site.com/
and not www.site.com/blog/
.
Comment | File | Size | Author |
---|---|---|---|
#2 | metatag-n2689543-1.patch | 740 bytes | kplanz |
Comments
Comment #2
kplanz CreditAttribution: kplanz at Bright Solutions GmbH commentedComment #4
DamienMcKennaCommitted. Thanks!