[dokuwiki] Re: Namespace linking from URL (fix for #991)

  • From: Guy Brand <gb@xxxxxxxxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 25 Jan 2007 15:26:30 +0100

On 25 January at 15:21, Guy Brand wrote:

>   Attached is a single-line patch which allows namespace auto-linking

  and of course, I forgot the small attachment

-- 
  bug
--- pageutils.php.orig  Mon Oct 16 16:18:07 2006
+++ pageutils.php       Thu Jan 25 15:04:14 2007
@@ -52,6 +52,8 @@
     //strip leading slashes
     $id = preg_replace('!^/+!','',$id);
   }
+ 
+  resolve_pageid('',$id,$exists);
   if($clean) $id = cleanID($id);
   if(empty($id) && $param=='id') $id = $conf['start'];
 

Other related posts: