The official website for The Settlers of Catan

Question about “Cities & Knights” Expansion Progress Cards: Diplomat - Do I lose the Longest Road while I move one of its road pieces?

Answer

No. You don’t lose the Longest Road because you are moving one of its road pieces, provided that after relocation your continuous road is at least as long as before.