Page MenuHomePhabricator

A lot of wikisource interwikimap urls are redirected
Closed, DeclinedPublic

Description

A lot of siteinfo interwikimap url does not exists but is redirected to https://wikisource.org/wiki/Main_Page

Sample:
https://wikisource.org/w/api.php?action=query&meta=siteinfo&siprop=interwikimap

{
    "prefix": "ie",
    "local": "",
    "language": "Interlingue",
    "url": "https://ie.wikisource.org/wiki/$1"
},
{
    "prefix": "ig",
    "local": "",
    "language": "Igbo",
    "url": "https://ig.wikisource.org/wiki/$1"
},
{
    "prefix": "ii",
    "local": "",
    "language": "\ua187\ua259",
    "url": "https://ii.wikisource.org/wiki/$1"
},
{
    "prefix": "ik",
    "local": "",
    "language": "I\u00f1upiak",
    "url": "https://ik.wikisource.org/wiki/$1"
},

Please provide an additional key like redir_url to give an hint that the given url has no distinct site from mul.wkisource.org but is redirected to that.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

This is about API, right?

Yes it’s about siteinfo via api

Anomie closed this task as Declined.EditedJan 13 2020, 2:30 PM
Anomie subscribed.

This information is not available to the API to be returned. The URLs are just configured, there's no indication as to whether they redirect somewhere or not.

If you would want this to happen, then first the Interwiki class would have to be updated to provide this information, and the data sources would in turn have to be updated to allow it to be set.

This is pretty similar to be-x-old -> be-tarask issue anyway. API returns something weird instead of what is expected

This is pretty similar to be-x-old -> be-tarask issue anyway. API returns something weird instead of what is expected

We have these old redirected sites in our Family file:

# Code mappings which are only an alias, and there is no 'old' wiki.
# For all except 'nl_nds', subdomains do exist as a redirect, but that
# should not be relied upon.
code_aliases = {
    # Country aliases; see T87002
    'dk': 'da',  # Wikipedia, Wikibooks and Wiktionary only.
    'jp': 'ja',

    # Language aliases
    'nb': 'no',  # T86924

    # closed wiki redirection aliases
    'mo': 'ro',

    # Incomplete language code change. T86915
    'minnan': 'zh-min-nan',
    'nan': 'zh-min-nan',

    # These two probably only apply to Wikipedia.
    # Server not found for the other projects.
    'zh-tw': 'zh',
    'zh-cn': 'zh',

    # miss-spelling
    'nl_nds': 'nl-nds',

    # Renamed; see T11823
    'be-x-old': 'be-tarask',

    '-': 'mul',  # T114574
}

But we have no Information about multilingual redirections yet

(yeah, but edit of article with be-x-old interwiki link still fails due to API issue)

Change 573992 had a related patch set uploaded (by Dvorapa; owner: Dvorapa):
[pywikibot/core@master] [bugfix] Fix www Wikisource aliases

https://gerrit.wikimedia.org/r/573992

Change 573992 merged by jenkins-bot:
[pywikibot/core@master] [bugfix] Fix mul Wikisource aliases

https://gerrit.wikimedia.org/r/573992