https://bugzilla.wikimedia.org/show_bug.cgi?id=52429

--- Comment #8 from Nemo <federicol...@tiscali.it> ---
(In reply to Rob Lanphier from comment #0)
> Language variants currently point to the same canonical URL. For example, on
> this page:
> 
> http://zh.wikipedia.org/zh-tw/%E6%B1%89%E8%AF%AD
> 
> ...there is a rel=”canonical” pointing to
> http://zh.wikipedia.org/wiki/%E6%B1%89%E8%AF%AD

Now has:

<link rel="alternate" hreflang="zh" href="/zh/%E6%B1%89%E8%AF%AD" />
[...]
<link rel="alternate" hreflang="zh-TW" href="/zh-tw/%E6%B1%89%E8%AF%AD" />
<link rel="alternate" hreflang="x-default" href="/wiki/%E6%B1%89%E8%AF%AD" />
[...]
<link rel="canonical" href="http://zh.wikipedia.org/zh-tw/%E6%B1%89%E8%AF%AD";
/>

But I'm not sure this is properly fixed in general, because this is still an
issue:

(In reply to fireattack from comment #2)
> Currently Google seems to mainly index /zh/ links instead of /wiki/'s (which
> is unexpected). /zh-tw/ or /zh-cn/'s are not indexed as expected though.

The two URLs for "zh" version don't agree on which is canonical:

/zh/ says

<link rel="alternate" hreflang="zh" href="/zh/%E6%B1%89%E8%AF%AD" />
[...]
<link rel="canonical" href="http://zh.wikipedia.org/zh/%E6%B1%89%E8%AF%AD"; />

/wiki/ says

<link rel="alternate" hreflang="zh" href="/zh/%E6%B1%89%E8%AF%AD" />
[...]
<link rel="canonical" href="http://zh.wikipedia.org/wiki/%E6%B1%89%E8%AF%AD"; />

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
Wikibugs-l mailing list
Wikibugs-l@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/wikibugs-l

Reply via email to