* Load the revision (including cur_text) into this object
*/
function loadContent( $noredir = false ) {
- global $wgOut, $wgRequest;
+ global $wgOut, $wgRequest, $wgDisableHardRedirects;
if ( $this->mContentLoaded ) return;
# Gotta hand redirects to special pages differently:
# Fill the HTTP response "Location" header and ignore
# the rest of the page we're on.
- if( $globalTitle ) {
+ if( $globalTitle && !$wgDisableHardRedirects ) {
global $wgOut;
if ( $rt->getInterwiki() != '' && $rt->isLocal() ) {
$source = $this->mTitle->getFullURL( 'redirect=no' );
* from the .../skins/ directory
*/
$wgSkipSkin = '';
-$wgSkipSkins = array(); # More of the same
-
/**
* Array of disabled article actions, e.g. view, edit, dublincore, delete, etc.
*/
$wgDisabledActions = array();
+/**
+ * Disable redirects to special pages and interwiki redirects, which use a 302 and have no "redirected from" link
+ */
+$wgDisableHardRedirects = false;
+
/**
* Use http.dnsbl.sorbs.net to check for open proxies
*/