diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/Smokeping.pm | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/Smokeping.pm b/lib/Smokeping.pm index c5d0eef..09ff150 100644 --- a/lib/Smokeping.pm +++ b/lib/Smokeping.pm @@ -106,7 +106,7 @@ sub lnk ($$) { if ($q->isa('dummyCGI')) { return $path . ".html"; } else { - return ($q->script_name() || '') . "?target=" . $path; + return $cfg->{General}->{cgiurl} . "?target=" . $path; } } @@ -997,7 +997,7 @@ sub display_webpage($$){ { menu => target_menu($cfg->{Targets}, [@$open], #copy this because it gets changed - ($q->script_name() || '')."?target="), + $cfg->{General}->{cgiurl}."?target="), title => $tree->{title}, remark => ($tree->{remark} || ''), overview => get_overview( $cfg,$q,$tree,$open ), |