Re-arrange and truncate links