From b59ab95f916762546182de4da0486e2ae151ece0 Mon Sep 17 00:00:00 2001 From: Krinkle Date: Tue, 16 Jul 2019 11:50:30 +0000 Subject: [PATCH] Revert "RedirectSpecialPage: handle interwiki redirects." This reverts commit 41106688abbe6dfff61c5642924ced42af3f0d33. The original case is changed by this commit from a MediaWiki fatal exception with HTTP 500, to a blank 200 response due to silent failure. Use of GoToInterwiki appears to be invalid at this point in the code. Reverting to keep prod the same as last week, so as to unblock the train. Bug: T227700 Change-Id: Ieece956d2e2e4c21b5ed7a75890b9f11eaf07e66 --- includes/MediaWiki.php | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/includes/MediaWiki.php b/includes/MediaWiki.php index 3934cd2aa8..69f23c1d13 100644 --- a/includes/MediaWiki.php +++ b/includes/MediaWiki.php @@ -260,16 +260,8 @@ class MediaWiki { ) { list( , $subpage ) = $spFactory->resolveAlias( $title->getDBkey() ); $target = $specialPage->getRedirect( $subpage ); - // Target can also be true. We let that case fall through to normal processing. + // target can also be true. We let that case fall through to normal processing. if ( $target instanceof Title ) { - if ( $target->isExternal() ) { - // Handle interwiki redirects - $target = SpecialPage::getTitleFor( - 'GoToInterwiki', - $target->getPrefixedDBkey() - ); - } - $query = $specialPage->getRedirectQuery( $subpage ) ?: []; $request = new DerivativeRequest( $this->context->getRequest(), $query ); $request->setRequestURL( $this->context->getRequest()->getRequestURL() ); -- 2.20.1