[Home]WikiBugs/RequestedLinks

UseModWiki | WikiBugs | RecentChanges | Preferences

Fixed in 1.0.2 --MarkusLude

I found that subpages are not properly handled under the links actions. Try, LocalWiki:action=links&editlink=1. For example, when I last ran the command, the BrowsePage entry on the list did not properly handle the BrowsePage/Code subpage.

Insert the following code

  sub GetFullLinkList {
    ...
    ## PATCH - fix subpages on link list
    if ( $link =~ /^\// ) {
      $link = $name.$link;
    }
    ## END PATCH
    $seen{$link}++;
    ...

Am I missing a reason why the top page is not prepended? JamesHodge?

This seems to fix my problem documented at /ActionLinksExistsZeroSubPage -- MikeCastle

Consider the case that $name is "TopPage/SubPage" and it has "/SubPageTwo" in itself. $link will be "TopPage/SubPage/SubPageTwo" I think the following is better:
    if ( $link =~ /^\// ) {
      $link = (split('/',$name))[0].$link;
    }
-- GyPark

Ooops. I've updated a unified-diff patch over at WikiPatches/RequestedLinks -- MikeCastle

UseModWiki | WikiBugs | RecentChanges | Preferences
Edit text of this page | View other revisions | Search MetaWiki
Last edited November 12, 2007 12:52 am by MarkusLude (diff)
Search: