SpecialPageLanguage: Redirect to redirect by adding redirect=no
authorFomafix <fomafix@googlemail.com>
Sat, 4 Jun 2016 09:28:29 +0000 (09:28 +0000)
committerFomafix <fomafix@googlemail.com>
Wed, 11 Jan 2017 10:47:34 +0000 (11:47 +0100)
Change-Id: Ifcdfcc2073141d7f2b6742f173ccebdacf9b03b0

includes/specials/SpecialPageLanguage.php

index d4cd2ac..db05ebe 100644 (file)
@@ -136,7 +136,9 @@ class SpecialPageLanguage extends FormSpecialPage {
                }
 
                // Url to redirect to after the operation
-               $this->goToUrl = $title->getFullURL();
+               $this->goToUrl = $title->getFullURL(
+                       $title->isRedirect() ? [ 'redirect' => 'no' ] : []
+               );
 
                return self::changePageLanguage(
                        $this->getContext(),