[pmwiki-users] Problems causedf by recent PmWiki updates

marc gmane at auxbuss.com
Tue Mar 13 10:03:05 CDT 2007


Patrick R. Michaud said...
> On Mon, Mar 12, 2007 at 04:03:06PM -0000, marc wrote:
> > Adding back the ResolvePageName() in or before authuser.php fixes the 
> > problem.
> > 
> > As I mentioned, removing the 'get rid of main' code removes the problem; 
> > so it seems that it is associated with that code. I call this before 
> > authuser, but placing it after made no difference.
> > 
> > 'get rid of main' does:
> > 
> >   $pagename = MakePageName('Main.HomePage', $pagename);
> > 
> > So, presumably,
> > 
> >   $pagename = ResolvePageName(MakePageName('Main.HomePage', $pagename));
> > 
> > should fix the problem, which it seems to.
> 
> Actually, I don't think the call to MakePageName() is needed at all,
> because ResolvePageName() already does that.  So, simply doing
> 
>     $pagename = ResolvePageName($pagename);
> 
> after the changes to $PagePathFmt should be sufficient.

When I do that, I lose clean URLs.

To be precise: the HTML links are clean, but the browser displays the 
full

    http://site/pmwiki/index.php/Main/NotHomePage

except for farm Main/HomePage

-- 
Cheers,
Marc




More information about the pmwiki-users mailing list