[pmwiki-users] self-links: Better check including "action"?

Petko Yotov 5ko at 5ko.fr
Sun May 15 07:29:35 CDT 2011


On Saturday 14 May 2011 16:16:06, Oliver Betz wrote :
> http://www.pmwiki.org/wiki/Cookbook/TrackingMenu shows (at the end of
> the page) how to avoid self-links.
> 
> But this breaks the default "view" action.
> 
> I can add "action=browse" to the action link, but wouldn't it be
> better PmWiki recognised the ?action part, too?

Something like this?

  if($action == "browse")
    $LinkPageSelfFmt = "<span class='selflink'>\$LinkText</span>"; 

Petko



More information about the pmwiki-users mailing list