From 97fc1ad55520dd2fbf5c7165bac9c701b7d8ed44 Mon Sep 17 00:00:00 2001 From: Florian Date: Thu, 31 Mar 2016 12:57:50 +0200 Subject: [PATCH] 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 --- includes/specials/SpecialRedirect.php | 1 - 1 file changed, 1 deletion(-) 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; } -- 2.20.1