[pmwiki-users] get rid of group Main from url

JB jbit at bitlink.com
Wed Nov 8 12:32:20 CST 2006


* Patrick R. Michaud wrote, On 11/8/2006 11:30 AM:
> Your farmconfig.php script is calling ResolvePageName() 
> before the value of $PagePathFmt has been set in config.php.
> Thus, ResolvePageName() is treating "?n=SomeName" as being
> a reference to the SomeName group instead of Main.SomeName.


Commenting out these 3 lines made it work correctly!
Thanks to PM and Anno and Stirling.


     #$pagename = ResolvePageName($pagename);

     #if ($pagename == 'Site.SideBar' && $action=='browse')
     Redirect($DefaultPage);

     #if ($pagename == 'Main.SideBar' && $action=='browse')
     Redirect($DefaultPage);

Is there a way to make PMWiki return to the last page viewed
after editing the menu, a way that is compatible with these
"get rid of main" routines?





More information about the pmwiki-users mailing list