There is a ContactHelperRoute::getContactRoute() which retrieves the right contact URL for you. It might be worth to look into using that, even though it would require you to also get the contact items category ID.