! improved parsing of # anchors

This commit is contained in:
Alan Ritari 2004-02-12 16:50:07 +00:00
parent 3e22161d8b
commit c18b7da8cc

View file

@ -122,6 +122,11 @@ sub start {
if ($val =~ /^\?/) { # link that starts with ? i.e. <a href="?var=hello">
my @urlBase = split(/\?/, $self->{Url});
$val = URI::URL::url($urlBase[0] . $val);
# catch internal # anchors
} elsif ($val =~ /^#/){
$val = URI::URL::url($val);
} else {
$val = URI::URL::url($val)->abs($self->{Url},1); # make absolute
}