Update links to use correct ids