From: sbassett Date: Tue, 27 Aug 2019 20:55:39 +0000 (-0500) Subject: dispatchUser() should use a 302 http status code X-Git-Tag: 1.31.4~6 X-Git-Url: http://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=commitdiff_plain;h=52b74d44d522c2a1b67f9ccc2b8f7e44b6b52d7c dispatchUser() should use a 302 http status code dispatchUser() in SpecialRedirect.php should use a 302 http status code instead of a 301 to avoid certain caching issues. Bug: T231386 Change-Id: Idb0cb21cc81d73bb9f77fc211af9cfd8b4f71e7d (cherry picked from commit 02f35caa16fa574bb36a1d22eea62c3b250de235) --- diff --git a/includes/specials/SpecialRedirect.php b/includes/specials/SpecialRedirect.php index 6740da01e0..7eba0ded23 100644 --- a/includes/specials/SpecialRedirect.php +++ b/includes/specials/SpecialRedirect.php @@ -88,7 +88,9 @@ class SpecialRedirect extends FormSpecialPage { } $userpage = Title::makeTitle( NS_USER, $username ); - return Status::newGood( $userpage->getFullURL( '', false, PROTO_CURRENT ) ); + return Status::newGood( [ + $userpage->getFullURL( '', false, PROTO_CURRENT ), 302 + ] ); } /**