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

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

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

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