[pmwiki-users] page redirection glitch

Dominique Faure dominique.faure at gmail.com
Fri Aug 25 10:46:45 CDT 2006


Hi,

When using page redirection with the (:redirect:) page directive or
the 'from=' url argument, the destination page get prefixed with the
$PageRedirectFmt variable content aka "redirected from ..." followed
by a link to edit the original page.

The following code (in config.php) allow this edit link to be replaced
by a browse only one, if the user as no edit rights on the original
page:

if(@$_GET['from']) {
  if(!(boolean)RetrieveAuthPage($_GET['from'], 'edit', false, READPAGE_CURRENT))
    $PageRedirectFmt = FmtPageName("<p><i>($[redirected from] <a rel='nofollow'
 href='{\$PageUrl}'>{\$FullName}</a>)</i></p>\$HTMLVSpace\n", $_GET['from']);
}

Couldn't this feature be incorporated into the core?

Thanks,
Dom




More information about the pmwiki-users mailing list