Don't emit 404 status code on Special:Redirect
authorFlorian <florian.schmidt.stargatewissen@gmail.com>
Thu, 31 Mar 2016 10:57:50 +0000 (12:57 +0200)
committerFlorian <florian.schmidt.stargatewissen@gmail.com>
Thu, 31 Mar 2016 10:57:50 +0000 (12:57 +0200)
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

index c0ed4c9..12959a3 100644 (file)
@@ -272,7 +272,6 @@ class SpecialRedirect extends FormSpecialPage {
                                $url = $this->dispatchLog();
                                break;
                        default:
-                               $this->getOutput()->setStatusCode( 404 );
                                $url = null;
                                break;
                }