Account for <base> tag in getLocation