summaryrefslogtreecommitdiff
path: root/redirect.php
blob: ad3400ef9baafc2c693045e6bd33a7db3cf7e1bb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
<?php
require_once( './includes/WebStart.php' );
global $wgArticlePath;

require_once( 'includes/WebRequest.php' );
$wgRequest = new WebRequest();

$page = $wgRequest->getVal( 'wpDropdown' );

$url = str_replace( "$1", urlencode( $page ), $wgArticlePath );

header( "Location: {$url}" );