Relative / absolute links to subpages

Frédéric Mangeant frederic.mangeant at
Tue Aug 9 18:00:07 CEST 2005

Hi again

back with bbgen 2.x / 3.x, I had to modify the do_page_subpages() 
function in bbdisplay/pagegen.c to view the pages with our custom 
portal, which access BB through a reverse proxy.

The mod was :

--- pagegen.c   2005-08-09 17:45:14.000000000 +0200
+++ pagegen.c.orig      2005-08-09 17:55:19.000000000 +0200
@@ -805,7 +805,7 @@

                        if (currentcolumn == 0) fprintf(output, "<TR>\n");

-                       sprintf(pagelink, "%s/%s%s", p->name, p->name, 
+                       sprintf(pagelink, "%s/%s/%s/%s%s", 
xgetenv("BBWEB"), pagepath, p->name, p->name, htmlextension);

                        linkurl = hostlink(p->name);
                        fprintf(output, "<TD><FONT %s>", 

Do you think this could be available as an option (eg. "--absolute-urls" 
and "--relative-urls"), or even as a default value ?

Thanks in advance.


Frédéric Mangeant

Steria EDC Sophia-Antipolis

More information about the Xymon mailing list