> +     for (@{ $html_tree->extract_links() }) {
> +             my ($link, $element, $attr) = @{ $_ };
> +             my $url = url($link)->canonical;
> +             $element->attr($attr, URI->new_abs($url, $remote_url));

Actually, this breaks some relative links, like table of content links,
because you consider them relative to URLs like
but not

Ideally, links pointing to stg like "#anchor" should not be modified.

Matthieu Moy
To unsubscribe from this list: send the line "unsubscribe git" in
the body of a message to
More majordomo info at

Reply via email to