VirtueMart Forum

VirtueMart 2 + 3 + 4 => Product creation => Topic started by: bartpg on August 11, 2014, 15:22:26 PM

Title: Meta-tags with duplicate domain name [solved]
Post by: bartpg on August 11, 2014, 15:22:26 PM
Not entirely sure where to place this, although this problem surfaces at the share-buttons on the product details page:

Joomla 2.5.24
Virtuemart 2.6.6

When sharing the product to Facebook, the image isn't included. Although the og:image metatag is present in the source, the URL to the particular image isn't correct. The domain name is added twice, probably due to VirtueMart (?) passing the absolute URL which is then added to the Joomla base-url. I can't seem to find the part of the code that causes this while searcing for any og: string in either the Joomla or VirtueMart code. Anyone out there that can point me in the right direction to get the og:image meta working properly? The problem sounds similar to this link (http://www.phoca.cz/forum/viewtopic.php?f=33&t=24672), although covering another developers' component.

Example site: http://lanine.nl/vavin/vavin-intensive-dagcreme-droog-zeer-droge-huid-artikelgegevens
Facebooks Object Debugger: https://graph.facebook.com/545792572217253
Title: Re: Meta-tags with duplicate domain name
Post by: GJC Web Design on August 11, 2014, 15:48:34 PM
on a standard VM2.6.6 no og tags are produced - so they must be produced by your yag template -> so - > direct your query to them I'm afraid
Title: Re: Meta-tags with duplicate domain name
Post by: bartpg on August 11, 2014, 16:59:45 PM
Quote from: GJC Web Design on August 11, 2014, 15:48:34 PM
on a standard VM2.6.6 no og tags are produced - so they must be produced by your yag template -> so - > direct your query to them I'm afraid
Pushes me in the right direction, thanks! This can be closed.