Last modified: 2011-11-07 23:47:09 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29362, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27362 - Use <link rel="alternate"> for language-variant links
Use <link rel="alternate"> for language-variant links
Status: RESOLVED FIXED
Product: MediaWiki
Classification: Unclassified
Language converter (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Philip Tzou
: accessibility, easy, i18n
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-12 13:38 UTC by Andy Mabbett
Modified: 2011-11-07 23:47 UTC (History)
4 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Andy Mabbett 2011-02-12 13:38:25 UTC
For each variant link, for example:

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

add a <link> element to the <head> section of the document, thus:

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

Bug 24742 is similar, but does not cover link headers.
Comment 1 Derk-Jan Hartman 2011-02-12 15:03:03 UTC
Already implemented in r74827
Comment 2 Andy Mabbett 2011-02-13 00:05:13 UTC
Is 74827 the correct number? I can't see anything about rel-alternate there.
Comment 3 Bawolff (Brian Wolff) 2011-02-13 03:34:13 UTC
r75617 is the correct rev
Comment 4 Andy Mabbett 2011-05-16 11:39:14 UTC
I was actually thinking of what's requested in Bug 4901 - "lang and hreflang attributes for interwiki links", to which I've added a request for rel="alternate"
Comment 5 Dan Jacobson 2011-11-07 23:47:09 UTC
See also Bug 31838.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links