Index: trunk/extensions/GeoLite/GeoLite_body.php |
— | — | @@ -44,8 +44,13 @@ |
45 | 45 | return; |
46 | 46 | } |
47 | 47 | } |
48 | | - // No valid IP or chapter page - let's just go for the general one |
49 | | - $wgOut->redirect( $wgLandingPageBase . $target . '/' . $lang . $tracking ); |
| 48 | + // No valid IP or chapter page - let's just go for the passed in url or our fallback |
| 49 | + if ( Http::isValidURI ( $target ) ) { |
| 50 | + $wgOut->redirect( $target . '/' . $lang . $tracking ); |
| 51 | + return; |
| 52 | + } else { |
| 53 | + $wgOut->redirect( $wgLandingPageBase . $target . '/' . $lang . $tracking ); |
| 54 | + } |
50 | 55 | } |
51 | 56 | |
52 | 57 | public function getDestination( $utm_source ) { |