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