Index: trunk/extensions/CodeReview/CodeRevisionCommitter.php |
— | — | @@ -57,7 +57,8 @@ |
58 | 58 | $redirTitle = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() ); |
59 | 59 | } |
60 | 60 | } else { |
61 | | - $redirTitle = $this->revLink(); |
| 61 | + # $redirTarget already set for comments |
| 62 | + $redirTitle = $redirTarget ? $redirTarget : $this->revLink(); |
62 | 63 | } |
63 | 64 | } |
64 | 65 | $wgOut->redirect( $redirTitle->getFullUrl() ); |