Fixed the redirect issue by adding the cud_id to the url