Index: trunk/extensions/LiquidThreads/classes/LqtDispatch.php |
— | — | @@ -23,7 +23,15 @@ |
24 | 24 | if ( $title->getNamespace() == NS_LQT_THREAD + 1 /* talk page */ ) { |
25 | 25 | // Threads don't have talk pages; redirect to the thread page. |
26 | 26 | $output->redirect( $title->getSubjectPage()->getFullUrl() ); |
| 27 | + return false; |
27 | 28 | } |
| 29 | + |
| 30 | + // If we came here from a red-link, redirect to the thread page. |
| 31 | + $redlink = $request->getCheck( 'redlink' ); |
| 32 | + if( $redlink ) { |
| 33 | + $output->redirect( $title->getFullURL() ); |
| 34 | + return false; |
| 35 | + } |
28 | 36 | |
29 | 37 | /* Certain actions apply to the "header", which is stored in the actual talkpage |
30 | 38 | in the database. Drop everything and behave like a normal page if those |