$ns = $wgTitle->getNamespace();
// Namespace might change when using redirects
- if($action == 'view') {
+ if($action == 'view' && !$wgRequest->getVal( 'oldid' ) ) {
$wgArticle = new Article( $wgTitle );
$rTitle = Title::newFromRedirect( $wgArticle->fetchContent() );
if($rTitle) {
- if( $rTitle->getNamespace() == $ns ) {
- $wgArticle->mContentLoaded=false;
- }
+ # Reload from the page pointed to later
+ $wgArticle->mContentLoaded = false;
$ns = $rTitle->getNamespace();
}
}