This is exactly the same code as `get_base_url`. Why not just call that?