Fix for <base> tag compatibility.