summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/pageutils.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/pageutils.php b/inc/pageutils.php
index 239ff41c5..b6b1d048b 100644
--- a/inc/pageutils.php
+++ b/inc/pageutils.php
@@ -60,7 +60,7 @@ function getID($param='id',$clean=true){
}
// Namespace autolinking from URL
- if(substr($id,-1) == ':' || ($conf['useslash'] && substr($id,-1) == '/')){
+ if(substr($id,-1) == ':' || ($conf['useslash'] && substr($id,-1) == '/') || $id == ''){
if(page_exists($id.$conf['start'])){
// start page inside namespace
$id = $id.$conf['start'];