Steps to replicate the issue (include links if applicable):
What happens?:
Auditing all the redlinked Wikipedias:
- https://als.wikipedia.org/: wiki exists; incorrect redlink
- https://bat-smg.wikipedia.org/: wiki exists; incorrect redlink
- https://be-x-old.wikipedia.org/: redirect to https://be-tarask.wikipedia.org/; either should be a bluelink or not listed at all
- https://fiu-vro.wikipedia.org/: wiki exists; incorrect redlink
- https://mo.wikipedia.org/: redirects to https://ro.wikipedia.org/; either should be a bluelink or not listed at all
- https://roa-rup.wikipedia.org/: wiki exists; incorrect redlink
- https://shy.wikipedia.org/: domain redirects to Incubator; correct redlink. (This is a weird edge case because it's the only one where a language's WP is in incubator but another project [Wiktionary] is live.)
- https://zh-classical.wikipedia.org/: wiki exists; incorrect redlink
- https://zh-min-nan.wikipedia.org/: wiki exists; incorrect redlink
- https://zh-yue.wikipedia.org/wiki/: wiki exists; incorrect redlink
What should have happened instead?:
Redlinks should only occur for wikis where the domain does not contain a wiki. Domain-level redirects should either be excluded from the matrix (maybe listed as an alias beneath their target?) or given some other styling, like an italicized bluelink.
Other information (browser name/version, screenshots, etc.):
This is discussed somewhat at T356849, although only in the context of Alemannic Wikipedia. The unifying attribute here is that these are wikis whose language codes do not match their ISO 639 codes. However, that's not the whole story: Per T125073, nrm and eml are also invalid ISO codes, but both of those are correctly bluelinked. So something about these seven (als, bat-smg-, fiu-vro, roa-rup, zh-classical, zh-min-nan, & zh-yue) is causing them to be treated differently—maybe the implementation of redirects from the correct code?
Note that I only audited Wikipedias, since the redlinks are easiest to spot there; this may also be happening with non-WP wikis in the matrix.
The issue with domain-level redirects is related but distinct (and if it should be split off, feel free, but I've filed it together due to the overlap). See T169450 for backstory there. Note that Alemannic has the quirk that its wikt, wq, and wb domains redirect to its wp domain, but AFAIK the others don't have that.