Contactgroups view: correct links to contacts detail pages

fixes #6514