Index: trunk/phase3/includes/SpecialPage.php |
— | — | @@ -276,16 +276,18 @@ |
277 | 277 | } else { |
278 | 278 | $redir = SpecialPage::getRedirect( $name ); |
279 | 279 | if ( isset( $redir ) ) { |
| 280 | + if( $par ) |
| 281 | + $redir = Title::makeTitle( $redir->getNamespace(), $redir->getText() . '/' . $par ); |
280 | 282 | $params = SpecialPage::getRedirectParams( $name ); |
281 | 283 | if( $params ) { |
282 | 284 | $url = $redir->getFullUrl( $params ); |
283 | | - } elseif( $par ) { |
284 | | - $url = $redir->getFullUrl() . '/' . $par; |
285 | 285 | } else { |
286 | 286 | $url = $redir->getFullUrl(); |
287 | 287 | } |
288 | 288 | $wgOut->redirect( $url ); |
289 | 289 | $retVal = $redir; |
| 290 | + $wgOut->redirect( $url ); |
| 291 | + $retVal = $redir; |
290 | 292 | } else { |
291 | 293 | $wgOut->setArticleRelated( false ); |
292 | 294 | $wgOut->setRobotpolicy( 'noindex,follow' ); |