From 52b74d44d522c2a1b67f9ccc2b8f7e44b6b52d7c Mon Sep 17 00:00:00 2001 From: sbassett Date: Tue, 27 Aug 2019 15:55:39 -0500 Subject: [PATCH] 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) --- includes/specials/SpecialRedirect.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 + ] ); } /** -- 2.20.1