Page MenuHomePhabricator

Use lang, hreflang and rel="alternate" attributes in variant links
Closed, ResolvedPublic

Description

Variant links are currently:

<a href="/zh-tw/Wikipedia:%E4%BA%92%E5%8A%A9%E5%AE%A2%E6%A0%88/%E6%B6%88%E6%81%AF" >台灣正體</a>

Changing them to the following style may be better (eg. better Google results):

<a href="/zh-tw/A" lang="zh-tw" hreflang="zh-tw" rel="alternate">台灣正體</a>

See also bug 24741.


Version: 1.17.x
Severity: enhancement

Details

Reference
bz24742

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 11:06 PM
bzimport set Reference to bz24742.
bzimport added a subscriber: Unknown Object (MLST).

andy wrote:

I have raised Bug 27362 which is similar, but proposes <link rel="alternate"> elements in the document's <head> section.

Created attachment 8133
lang and hreflang

It would be relatively easy to do this for Vector, patch attached.

And this once again shows, why we need to cleanup the skin system i guess. having to hardcode this into every skin seems terribly inefficient.

Attached:

Added lang and hreflang to the variant links in the variant menu with r112442. Did not add alternate for now, since I wans't sure about possible clashes with the alternate in Bug 27363.