Hello! Looks like the image_src tag is getting output as a meta tag in 8.1.x, instead of a link tag as it did in D7.
Entering https://www.drupal.org/files/drupal_logo-blue.png in the "image" config field on admin/config/search/metatag/global results in a meta tag getting output:
<meta name="image_src" content="https://www.drupal.org/files/drupal_logo-blue.png">
Looking around the web, and in the d7 version, I'd expect to see a link tag instead.
<link rel="image_src" href="https://www.drupal.org/files/drupal_logo-blue.png">
All that needs to change to make this happen is the ImageSrc class should extend LinkRelBase instead of MetaNameBase, and a couple tests need updates.
Comments
Comment #2
jlandfried commentedpatch attached
Comment #3
jlandfried commentedActually, started running into some issues while looking into https://www.drupal.org/node/2628472. We lose all of the image
srcextraction functionality that's currently contained inMetaNameBasewhen we switch toLinkRelBase, so this isn't ready yet.Comment #4
jlandfried commentedLooks like
ImageSrcis the only tag that is of typeimagethat should extendLinkRelBase, so I think this can be handled as a special case. Happy to be corrected if that's not the case, or this isn't the best way to handle this though.Comment #5
damienmckennaI think a better approach would be to run parent::output() in LinkRelBase and then adjust the array accordingly.
Comment #6
jlandfried commentedSomething more like this?
Comment #7
damienmckennaYes, awesome :) I'll review it in the morning.
Comment #8
rbayliss commentedMakes sense... I won't RTBC it since Damien's already on it, but it looks good to me!
Comment #9
damienmckennaComment #11
damienmckennaCommitted. Thanks!