#218 showconfig: incorrect tree links

current_cvs
closed-fixed
None
3
2012-09-21
2012-09-20
No

showconfig offers "previous" and "next" [parameter group] links to list configuration for other trees. Unhappily, the link is built using HTML-relative form which implies 'virtroot' is not changed and new modes links still point to the original tree.

The "previous" and "next" links should be computed according to the same algorithm as that used for the "speed switch" button in the page header area. The basic code already exist in Template.pm. Since this code manipulates configuration parameters, a new method should be created in Config.pm to be shared by Template.pm and Config.pm.

Discussion

  • Andre-Littoz

    Andre-Littoz - 2012-09-21
    • status: open --> closed-fixed
     
  • Andre-Littoz

    Andre-Littoz - 2012-09-21

    Method treeurl created in Config.pm to return an HTML-absolute URL for a tree or undef if it is the current tree. Caller may use this information to use HTML-relative URL or ignore action.

    showconfig and Template.pm modified to reflect new method.

     

Log in to post a comment.

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks