offspot / wikifundi

Create a pre-configured Mediawiki for offline Wikipedia contribution teaching
11 stars 2 forks source link

Bad links on Wikipedia:xxx #66

Closed Anthere closed 6 years ago

Anthere commented 6 years ago

See here for example in the "Showcase of good Wikipedia articles" paragraph

http://wikifundi-en.openzim.org/wiki/WikiFundi:Welcome

When there are pages that start with "Wikipedia:blabla", instead of heading to the proper wikifundi page, they are redirected to Wikipedia itself. As a result, many links are wrong in that page

florentk commented 6 years ago

@Anthere ok, I resolve it by replace Wikipedia:blabla link by Wikifundi;blabla. I am looking for modify these links during the mirroring

Anthere commented 6 years ago

Hmmm. But the problem is that we have different spaces on WikiFundi at the moment. Amongst those one is WikiFundi:blabla and another is Wikipedia:blabla and we do not host the same things in both spaces...

florentk commented 6 years ago

@Anthere j'essaye de comprendre, sur la page original ces liens pointent vers des pages qui n'existent pas. Quand je les importe, elle doivent pointer vers quel namespace ? Est-ce que la page de destination est quand même bien importée ou pas ?

Anthere commented 6 years ago

So let's pick up an exemple. Original context : https://en.wikipedia.org/wiki/Wikipedia:WikiProject_WikiFundi_Content/WikiFundi:Welcome Target context: http://wikifundi-en.openzim.org/wiki/WikiFundi:Welcome Check out : Under Showcase of good Wikipedia articles Original page : https://en.wikipedia.org/wiki/Wikipedia:WikiProject_WikiFundi_Content/Wikipedia:Showcase After scraping of first part of the url, target page should become "Wikipedia:Showcase" Right now, clicking on the link forward us directly to the REAL online Wikipedia:Showcase page. When I search for "Wikipedia:Showcase" on WikiFundi, I get this : http://wikifundi-en.openzim.org/wiki/Special:GoToInterwiki/wikipedia:Showcase

So I look into http://wikifundi-en.openzim.org/wiki/Special:AllPages to try to see if that page exist somewhere. And I think I get the problem... when in Special:AllPages, if you check out the list of spaces available, you will notice that there is a "Wikipédia" namespace. The namespace on the English WikiFundi should be a "Wikipedia" namespace.

florentk commented 6 years ago

@Anthere Thanks for the debuging, I find the bug in MediaWiki config, I had configured "Wikipédia" namespace in the EN version, the update is in progress....

Anthere commented 6 years ago

BUT.... unfortunately, in fixing that... you broke the FR version :) The namespace in the FR version is now Wikipedia, whilst it should be Wikipédia. So all the links going to the wikipedia namespace are broken...

Anthere commented 6 years ago

I am unsure whether this bug is supposed to be fixed now or not. However, what I see is that it is not working at all. The Wikipedia:xxx has now been replaced by WikiFundi:xxx Which does not solve the problem at all. All the links between articles are as Wikipedia:xxx. So having WikiFundi:xxx as name of the articles is breaking all the links.

Two interesting links to second that

florentk commented 6 years ago

@Anthere In fact, I have not lauch a full mirroring, this problem will be fixed after a full mirroring

florentk commented 6 years ago

fix in last mirroring for FR and EN