fixes #5389 URL doesn't update correctly after creating a new host