Help for this page
s{(</head>)}{<base href="$current_docroot">$1}i;
# $link_target and $url_just_fetched are known... ... # last step: $full_target =~ s/\#.*//; # in case the link target is a named anchor + within a page