From: Brion Vibber Date: Sun, 1 Feb 2004 04:51:50 +0000 (+0000) Subject: Only redirect to canonical title on view URLs. X-Git-Tag: 1.3.0beta1~1046 X-Git-Url: http://git.cyclocoop.org/%24action?a=commitdiff_plain;h=a21c4e109fd19b7f8773e154adc93f7cc23fe7b6;p=lhc%2Fweb%2Fwiklou.git Only redirect to canonical title on view URLs. --- diff --git a/wiki.phtml b/wiki.phtml index ba5e2821b1..35fdcd98b4 100644 --- a/wiki.phtml +++ b/wiki.phtml @@ -61,7 +61,7 @@ if ( "" != $search ) { } else if( !$wgTitle or $wgTitle->getInterwiki() != "" or $wgTitle->getDBkey() == "" ) { $wgTitle = Title::newFromText( wfMsg( "badtitle" ) ); $wgOut->errorpage( "badtitle", "badtitletext" ); -} else if ( $wgTitle->getPrefixedDBKey() != $title ) { +} else if ( ( $action == "view" ) && $wgTitle->getPrefixedDBKey() != $title ) { /* redirect to canonical url */ $wgOut->redirect( wfLocalUrl( $wgTitle->getPrefixedURL() ) ); } else if ( Namespace::getSpecial() == $wgTitle->getNamespace() ) {