Page MenuHomePhabricator

oldwikisource language links point to Wikipedias rather than Wikisources
Closed, ResolvedPublic

Description

Author: brendan

Description:
Description: Language links on oldwikisource link to the appropriate Wikipedia rather than Wikisource.

Steps to reproduce: View [[oldwikisource:User:Prosody/a]].

Actual results: inline link to [[w:es:Don Quijote]].

Expected results: inline link to [[s:es:Don Quijote]].


Version: unspecified
Severity: critical

Details

Reference
bz29591

Event Timeline

bzimport raised the priority of this task from to Unbreak Now!.Nov 21 2014, 11:34 PM
bzimport set Reference to bz29591.
bzimport added a subscriber: Unknown Object (MLST).

Well, this is due to the Old Wikisource being originally from a subdomain of wikipedia.org (sources.wikipedia.org) and the sysadmins just moved the database over to the new domain at wikisource.org, which explains the error.

Might also explain why it does not sit within the same hierarchical domain structure for those with a secure login

https://secure.wikimedia.org/wikipedia/sources/wiki/Wikisource:Scriptorium

versus where it might be expected

https://secure.wikimedia.org/wikisource/sources/wiki/Wikisource:Scriptorium

cf. English Wikisource being at
https://secure.wikimedia.org/wikisource/en/wiki/Wikisource:Scriptorium

(In reply to comment #2)

Might also explain why it does not sit within the same hierarchical domain
structure for those with a secure login

This is not a problem, it's just the current secure.wikimedia.org doesn't have any logic at all, that's why it's being replaced; let's not confuse things.

Because there is no link from here: this is a follow-up of bug 29534.

This also affects external (i.e. non-WMF/private mediawiki wikis).

Background: MW comes set up with default interwiki links per http://www.mediawiki.org/wiki/Manual:Interwiki#Default. So for example, if I make a link on my personal wiki (where I have left all the defaults intact) : [[wikipedia:Foo]] will link to http://en.wikipedia.org/wiki/Foo. The same is true for [[wikiquote]], etc. Except for wikisource. [[wikisource:Foo]] will link to http://wikisource.org/wiki/Foo. Although this is inconsistent, it's not directly a problem and is actually desirable as it's less Anglo-centric.

Problem: [[wikisource:s:Foo]] will link to http://en.wikipedia.org/wiki/Foo. To link to the english wikisource the link must be structured thus: [[wikisource:en:s:Foo]]. This is consistent with the problem above, as links from the multilingual (old) wikisource to subdomains must be structured [[s:en:Foo]]

Of course, there needs to be a plan to bot in the implementation of any fix, that is, to replace all the existing work around links with links that comply with the fixed format.

Please, can this be fixed? On Wikisource we are working for a stronger collaboration between subdomains, and we look at oldwikisource to become the central pillar of the Wikisource project. But if not even interwiki links do work as expected...

Is it even possible for us to have an interwiki like [[:www:]] for the WS domain?

I fixed this by hacking a special case for sourceswiki into dumpInterwiki.php in r102388 and rebuilding the interwiki map.

This is fixed now, as you can see by previewing something like [[:de:Foo]] on sourceswiki. You may still see links with the old behavior because of the parser cache; purging or null-editing the page will fix that.

Yup, verifying. Looks fixed to me on [[oldwikisource:User:Prosody/a]].

(In reply to comment #8)

I fixed this by hacking a special case for sourceswiki into dumpInterwiki.php
in r102388 and rebuilding the interwiki map.

I suppose this is related: https://wikisource.org/?diff=322190&oldid=322117
w: should point to en.wiki, although it's not so important.

(In reply to comment #10)

(In reply to comment #8)

I fixed this by hacking a special case for sourceswiki into dumpInterwiki.php
in r102388 and rebuilding the interwiki map.

I suppose this is related: https://wikisource.org/?diff=322190&oldid=322117
w: should point to en.wiki, although it's not so important.

Note, there are similar issues with the q:, n:, v: etc prefixes pointing to the sn language.

(In reply to comment #11)

(In reply to comment #10)

(In reply to comment #8)

I fixed this by hacking a special case for sourceswiki into dumpInterwiki.php
in r102388 and rebuilding the interwiki map.

I suppose this is related: https://wikisource.org/?diff=322190&oldid=322117
w: should point to en.wiki, although it's not so important.

Note, there are similar issues with the q:, n:, v: etc prefixes pointing to the
sn language.

Fixed in r102545, deployed, and interwiki cache rebuilt. Seems to be working now.

Reopening because links are currently pointing to Wikipedia again.

Please, any update on this? Currently all interwiki links on oldwikisource are broken.

Seems to be working again?

Yes, I'm closing it. Many thanks to the unknown being that solved it.