Steps to replicate the issue (include links if applicable):
- Go to https://zh.m.wikipedia.org
- Check the alternate URL meta tags <link rel="alternate"
- Check the href URLs
What happens?:
- In the mobile site, the alternate URLs give the desktop site URLs ( https://zh.wikipedia.org ).
- Canonical URL is a desktop URL
What should have happened instead?:
- The alternate URLs should have desktop site URLs in desktop site ( https://zh.wikipedia.org ), mobile site URLs in mobile site ( https://zh.m.wikipedia.org ).
- The canonical URL should always be desktop.
Software version (skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
Acceptance criteria (AC):
- Example page: https://zh.wikipedia.org/wiki/汉语 ( shortened as /wiki/汉语 format below )
| Language variant in URL | Action | link rel="canonical" | link rel="alternate" hreflang="zh-Hant-TW" | Notes |
|---|---|---|---|---|
| non-specified | view | /wiki/汉语 | /zh-tw/汉语 | |
| zh-tw | view | /zh-tw/汉语 | /zh-tw/汉语 | |
| non-specified | edit | /wiki/汉语 | /zh-tw/汉语 | See T67402 |
| zh-tw | edit | /zh-tw/汉语 | /zh-tw/汉语 | for consistency |
| non-specified | history | /w/index.php?title=汉语&action=history | (without HTML meta alternate tag) | See Func's cmt. |
| zh-tw | history | /w/index.php?title=汉语&action=history | (without HTML meta alternate tag) | See Func's cmt. |
| non-specified | info | /w/index.php?title=汉语&action=info | (without HTML meta alternate tag) | See Func's cmt. |
| zh-tw | info | /w/index.php?title=汉语&action=info | (without HTML meta alternate tag) | See Func's cmt. |
Version: 1.23.0
Severity: normal
See Also: