News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

Alternate Meta Tags incorrect

Started by ptrouw, June 12, 2017, 16:03:59 PM

Previous topic - Next topic

ptrouw

Hi,
I am using Alternate Meta Tags=ON in language plug-in. All Joomla pages have correct Alternate links, only the VM categories are incorrect. All links are the same and using the default front-end selected language and not the right alternate link.
For example:
<link href="nl/product-categorieen/comfort/zijwindscherm-sets.html" rel="alternate" hreflang="nl-NL" />
<link href="de/product-categorieen/comfort/zijwindscherm-sets.html" rel="alternate" hreflang="de-DE" />
<link href="en/product-categorieen/comfort/zijwindscherm-sets.html" rel="alternate" hreflang="en-GB" />

As you can see the link includes the right language alias, but the link is the alias from the default site language, in our case NL.
It should be something like this:
<link href="nl/product-categorieen/comfort/zijwindscherm-sets.html" rel="alternate" hreflang="nl-NL" />
<link href="de/produktkategorien/komfort/windabweiser.html" rel="alternate" hreflang="de-DE" />
<link href="en/products-categories/comfort/side-wind-deflectors.html" rel="alternate" hreflang="en-GB" />

If I switch to English in front-end, all alternate links are in English:
<link href="/products-categories/comfort/side-wind-deflectors.html" rel="alternate" hreflang="en-GB">
<link href="nl/products-categories/comfort/side-wind-deflectors.html" rel="alternate" hreflang="nl-NL">
<link href="de/products-categories/comfort/side-wind-deflectors.html" rel="alternate" hreflang="de-DE">


Any idea how to fix this?
Google is is of course giving 404 errors on this.
NOTE: if you are on the website and use the language icon to switch to another language it links to the right page, so those links are correct.

Using J 3.6.5
and VM 3.0.18.7

ptrouw

Is this a bug?
Does anybody have the same behaviour with J3.6.5 and VM 3.0.18.7?

jjk

You should consider to update your Joomla and VirtueMart versions. Joomla 3.6.5 has serveral security vulnerabilities which are fixed in the latest version.
With J3.7.2 and VM 3.2.3 I don't have your issue.

Example (tested locally - I don't use it on my live website):
   <link href="...://mysite/de/automobilkunst" rel="alternate" hreflang="de" />
   <link href="...://mysite/en/automobile-art" rel="alternate" hreflang="en" />

Something else to consider - en-GB, etc consists of a language code 'en' and a country code 'GB'. Google uses the country code for geo-targeting. 'en-GB' tells Google that the page is specifically made for English speaking people in the United Kingdom. If you use just 'en' (without '-GB'), it is more likely that Google will list that page also for searches from other English speaking countries, like USA, Australia, etc.
Non-English Shops: Are your language files up to date?
http://virtuemart.net/community/translations

ptrouw

JJK, thx for the tip and reply.
Unfortunately upgrade isn't that easy due to custom made components, a lot of external components and a commercial template!