Page MenuHomePhabricator

Redirect from is not working properly
Closed, ResolvedPublic

Event Timeline

There is no rewrite rule for zh-yue wiktionary; there is one for yue wikipedia. See line 97:

zh-yue wiktionary requests are sent to the incubator main page ( which is the source of your problem. That's done somewhere in MediaWiki configs, not by dns or apache redirects. Someone who knows about our setup of should look at this. My grep of CommonSettings etc didn't turn up much.

The WikimediaIncubator extension is working as intended, as it is supposed to direct users to the main page of the wiki. I think a rewrite rule in redirects.dat should achieve what the reporter originally intended.

Does the community want that, if there is a community of users on the incubator?

Yes, renaming of "zh-yue" to "yue" is stalled / lowest since 12 years or more. (2006 before Bugzilla?)

T10217 and T30441

This comment was removed by Urbanecm.

Are there other zh-yue and yue projects that also need to be addressed? I f we are going to add redirects, we might as well do all that are needed.















re: community desire: T30441#2637271 -> "Many editors of Cantonese Wikipedia have been watching this thread for 9 years"

We just need to add proper redirect rules for to at the current stage, period.

I'm ignoring zh-min-nan for the purposes of this ticket.

One line is just as easy as 5 or 6 when they are all the same sort of redirect for the same language codes.
It looks like the projects that get bounced through the incubator right now are wiktionary, wikinews, wikibooks, wikiquote, wikivoyage. I'll set up a patchset for those.

Nope, this is wrong. We want all the redirects to go from zh-yue to yue... it seems. So why does yue.wikipedia go to zh-yue.wikipedia?

Sorry for seeming to make it more complicated, what I don't want to do is make it *wrong*.

In T209693#4757863, @ArielGlenn wrote:

So why does yue.wikipedia go to zh-yue.wikipedia?

T10217 and T30441
Initially created at zh-yue in 2006, Cantonese Wikipedia didn't have a proper ISO 639-3 code. But soon after that, the code "yue" got approved. However, wiki renaming has been impossible (possible, but problems would arise).

What to do now: Find the mysterious rewrite rule, modify it such that redirects to instead of

Ok, I have read all the dang back tckets and thanks everyone for their comments. I am skipping wikisource and betawikiversity because it's more complication than I want to deal with. But here's a changeset that *should* cover everything else so we can not worry about this again, for everything else, except of course the wikipedia rename.

Change 474901 had a related patch set uploaded (by ArielGlenn; owner: ArielGlenn):
[operations/puppet@production] add redirects of various zh-yue projects to yue

Needless to say I'd like a bunch of eyes on this to make sure it's right. Thanks in advance.

Change 474901 merged by ArielGlenn:
[operations/puppet@production] add redirects of various zh-yue projects to yue

$ curl -D someheaders.txt -H 'X-Wikimedia-Debug: backend=mwdebug1002.eqiad.wmnet' ''
<title>301 Moved Permanently</title>
<h1>Moved Permanently</h1>
<p>The document has moved <a href="">here</a>.</p>
$ more someheaders.txt 
HTTP/2 301 
date: Thu, 22 Nov 2018 09:28:27 GMT
content-type: text/html; charset=iso-8859-1
content-length: 244
server: mwdebug1002.eqiad.wmnet
expires: Sat, 22 Dec 2018 09:28:27 GMT

So it looks good to me. This should be live on all production servers in about half an hour.

jcrespo assigned this task to ArielGlenn.
jcrespo added a subscriber: jcrespo.

@Hello903hello @Urbanecm this seems to be working after Ariel's patch, resolving. Please reopen if you see issues.