Fix erroneous computation of <base> tag
TODO: find a way to remove it to get back relative URLs