Fix hacks for root_url.