From: Florian Date: Thu, 31 Mar 2016 10:57:50 +0000 (+0200) Subject: Don't emit 404 status code on Special:Redirect X-Git-Tag: 1.31.0-rc.0~7465^2 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/modifier.php?a=commitdiff_plain;h=97fc1ad55520dd2fbf5c7165bac9c701b7d8ed44;p=lhc%2Fweb%2Fwiklou.git Don't emit 404 status code on Special:Redirect If the special page is opened without any value or redirect type, it shouldn't emit a 404 status code, as the page exists and it should be indexable. With this change, Special:Redirect only emits a 404 status code, when the value was not find for the redirect type. Bug: T131328 Change-Id: I578b15058aed77b5f4fb296db862a6e534c0888e --- diff --git a/includes/specials/SpecialRedirect.php b/includes/specials/SpecialRedirect.php index c0ed4c9943..12959a3e6a 100644 --- a/includes/specials/SpecialRedirect.php +++ b/includes/specials/SpecialRedirect.php @@ -272,7 +272,6 @@ class SpecialRedirect extends FormSpecialPage { $url = $this->dispatchLog(); break; default: - $this->getOutput()->setStatusCode( 404 ); $url = null; break; }