Improves <base> tag compatibility.