It bothers me that we need to do this, but I can't think of an alternative, apart from removing the `<base>` tag that was added in 06889414 (@frimik), but that stops us being able to support non-/ base URLs.  Oh well.