htmllink needs to do it because it uses the basename of the link as the link
text
bestlink needs to do it because it is not always called from htmllink
# absolute links
$cwd="";
}
# absolute links
$cwd="";
}
my $page=shift; # the page that will contain the link (different for inline)
my $link=shift;
my %opts=@_;
my $page=shift; # the page that will contain the link (different for inline)
my $link=shift;
my %opts=@_;
$link=~s/\/$//;
my $bestlink;
$link=~s/\/$//;
my $bestlink;