replace legacy links