making link to agenda detail variable depending on ticket link