Page MenuHomePhabricator

Interwiki redirects to local interwikis under the same domain do not work
Closed, ResolvedPublicBUG REPORT

Description

Steps to replicate the issue (include links if applicable):

  • Setup a local interwiki whose base URL is the same as the local wiki's.
  • Attempt to visit an interwiki redirect page using this local interwiki (e.g. http://mywiki.example.com/wiki/iwprefix:Test

What happens?:
The title is treated as invalid.

What should have happened instead?:
The URL should have redirected to the appropriate interwiki page.

Software version: 1.39

Event Timeline

Change #1023979 had a related patch set uploaded (by TK-999; author: TK-999):

[mediawiki/core@master] Allow interwiki redirects on the same domain

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

This is a headache for sites that host sister projects under the same domain:

  • https://starwars.fandom.com/wiki/essences:Test works as expected,
  • https://starwars.fandom.com/wiki/es:Test only works thanks to a bag of tricks involving hijacking the BadTitleError thrown from the init code to serve a redirect anyways.

The limitation seems to be unnecessary and can probably be removed.

Boldly tagging Mediawiki-Platform-Team since the component is without an owner but the change should be very simple.

Change #1023979 merged by jenkins-bot:

[mediawiki/core@master] Allow interwiki redirects on the same domain

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

TK-999 claimed this task.
TK-999 triaged this task as Low priority.