Fixes for <base> tag compatibility.