Redirect to markdown start pages where they exist
This commit is contained in:
parent
698e9465a7
commit
256e23b8a0
|
@ -71,6 +71,9 @@ function getID($param='id',$clean=true){
|
|||
if(page_exists($id.$conf['start'])){
|
||||
// start page inside namespace
|
||||
$id = $id.$conf['start'];
|
||||
}elseif(page_exists($id.$conf['start'].'.md')){
|
||||
// start markdown page inside namespace
|
||||
$id = $id.$conf['start'].'.md';
|
||||
}elseif(page_exists($id.noNS(cleanID($id)))){
|
||||
// page named like the NS inside the NS
|
||||
$id = $id.noNS(cleanID($id));
|
||||
|
|
Loading…
Reference in New Issue