Last modified: 2014-10-12 06:30: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 T26442, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 24442 - "chapter:" interwiki link doesn't work for non .wikimedia.org chapters wikis
"chapter:" interwiki link doesn't work for non .wikimedia.org chapters wikis
Status: RESOLVED WONTFIX
Product: Wikimedia
Classification: Unclassified
Interwiki links (Other open bugs)
unspecified
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-07-19 15:09 UTC by Nemo
Modified: 2014-10-12 06:30 UTC (History)
7 users (show)

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


Attachments

Description Nemo 2010-07-19 15:09:20 UTC
Currently if you are on $1 language subdomain of some Wikimedia project the [[chapter:$2]] interwiki link will bring you to $1.wikimedia.org/wiki/$2 , which will work if the chapter has his hosted by the WMF, but if the chapter has his own wiki will (at best) redirect you to the chapter main page because that wikimedia.org subdomain is a redirect to the chapter's domain. 
Currently you can't use interwiki to link specific pages on those wikis: that's inconsistent and unhandy and forces us to have unwanted "nofollow". 
The interwiki should bring you directly to the chapter's wiki page when it's the case (or maybe the redirect from wikimedia.org subdomains should be rewritten, I don't know how these things work). Complete list:

*http://www.wikimedia.org.ar/wiki/$1 <- ar:chapter:
*http://wikimedia.org.au//wiki/$1 <- au:chapter:
*http://www.wikimedia.ch/$1 <- ch:chapter:
*http://www.wikimedia.cz/web/$1 <- cz:chapter:
*http://wikimedia.hk/index.php/$1 <- hk:chapter:
*http://wiki.media.hu/wiki/$1 <- hu:chapter:
*http://www.wikimedia.or.id/wiki/$1 <- id:chapter:
*http://www.wikimedia.org.il/$1 <- il:chapter:
*http://wikimedia.it/index.php/$1 <- it:chapter:
*http://wikimedia.tw/wiki/index.php5/$1 <- tw:chapter:

Thank you.
Comment 1 Casey Brown 2010-07-19 15:14:53 UTC
The best way to do this is to create .wikimedia.org redirects for all of these, e.g. http://ar.wikimedia.org/ => http://www.wikimedia.org.ar/
Comment 2 Nemo 2010-07-19 15:23:16 UTC
As I said, sometimes such redirects are in place (e.g. http://it.wikimedia.org/), but they don't work (maybe it redirect to http://www.wikimedia.it/wiki/ instead of http://www.wikimedia.it/index.php/ , I don't know). 
Redirects to listed wikis should exist anyway, but obviously since projects are by language and chapters by country some of the previously listed interwikis can't be implemented at all. The possible interwikis are:

*http://www.wikimedia.cz/web/$1 <- cz:chapter:
*http://wiki.media.hu/wiki/$1 <- hu:chapter:
*http://www.wikimedia.or.id/wiki/$1 <- id:chapter:
*http://www.wikimedia.org.il/$1 <- he:chapter:
*http://wikimedia.it/index.php/$1 <- it:chapter:
Comment 3 Nemo 2010-08-09 21:51:45 UTC
Assigning to Rob since he's just said on #wikimedia-tech to do so for all interwiki related stuff.
Comment 4 Krinkle 2010-10-22 14:31:52 UTC
Has this been done ?
Comment 5 Nemo 2010-10-22 14:39:28 UTC
(In reply to comment #4)
> Has this been done ?

No.
Comment 6 Krinkle 2012-03-10 07:06:08 UTC
Perhaps its better for consistency and stability that instead of linking to a chapter wiki via chapter: to use the wm**: interwikis (wmnl: wmuk: wmde: etc.) Those already exist and leave no ambiguity.

I'd even support long-term removal of chapter: interwiki, currently its already somewhat broken since it links to inexistant wikis for some language wikis. Replacement should be fairly simple (for each wiki that has a chapter: to a workign wiki, replace links to chapter: with wm$lang:)
Comment 7 Waldir 2012-03-11 15:07:56 UTC
(In reply to comment #6)
> Perhaps its better for consistency and stability that instead of linking to a
> chapter wiki via chapter: to use the wm**: interwikis (wmnl: wmuk: wmde: etc.)
> Those already exist and leave no ambiguity.
> 
> I'd even support long-term removal of chapter: interwiki, currently its already
> somewhat broken since it links to inexistant wikis for some language wikis.
> Replacement should be fairly simple (for each wiki that has a chapter: to a
> workign wiki, replace links to chapter: with wm$lang:)

I agree. But note that this wouldn't solve the original request, which was to have redirects from .wikimedia.org to the custom domains the chapters use. For reference, this has been done for WMPT: see bug 30123.

(In reply to comment #2)
> Redirects to listed wikis should exist anyway, but obviously since projects are
> by language and chapters by country some of the previously listed interwikis
> can't be implemented at all.

I'm not sure I understand what you mean here. Maybe it's just me, but just in case, could you clarify? Did you mean what Krinkle said ("[the 'chapter:' interwiki prefix] links to inexistant wikis for some language wikis")?
Comment 8 Nemo 2012-03-11 15:26:50 UTC
(In reply to comment #7)
> (In reply to comment #2)
> > Redirects to listed wikis should exist anyway, but obviously since projects are
> > by language and chapters by country some of the previously listed interwikis
> > can't be implemented at all.
> 
> I'm not sure I understand what you mean here. Maybe it's just me, but just in
> case, could you clarify? Did you mean what Krinkle said ("[the 'chapter:'
> interwiki prefix] links to inexistant wikis for some language wikis")?

The redirect from the country-code subdomain is correct, but it would be incorrect for the chapter: interwiki to link say from de.wiki to WM-DE (there's also WM-AT) or from en.wiki to WM-UK.
Comment 9 Waldir 2012-03-12 00:30:36 UTC
(In reply to comment #8)
> The redirect from the country-code subdomain is correct, but it would be
> incorrect for the chapter: interwiki to link say from de.wiki to WM-DE (there's
> also WM-AT) or from en.wiki to WM-UK.

Ok, so I take it that you also agree with Krinke's proposal. So two things need to be done:

1. replace the chapter: interwiki prefix with wm** ones, as Krinkle suggested in comment #6
2. add custom redirect rules (see bug 30123 comment 4) so that one can link to specific pages in chapter wikis that are located in custom domains (complete list at comment #0)
Comment 10 This, that and the other (TTO) 2014-01-29 09:57:23 UTC
Jeremy: I note your comment at I5e7490c5db836d132cb1a9693a703ffdd0c1e8bc:

kill redirects for hostnames where DNS doesn't point to
the cluster (cz, cs)

Does this mean you are not prepared to allow redirects from WMF hostnames to non-WMF-hosted chapter sites, e.g. hu.wikimedia.org -> http://wikimedia.hu ?
Comment 11 This, that and the other (TTO) 2014-10-12 06:30:09 UTC
Marking this WONTFIX. All linking to chapter sites should be done using "wmXY:" prefixes instead. Tim Starling has recommended not to waste effort working on fixing the chapter interwiki setup.

In my view, the "chapter:" prefix should never have been set up in the first place, and should be considered deprecated (although obviously it can never really be removed).

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


Navigation
Links