transform related links on segments