The bug
Tridents with loyalty lose their ability to return after the player uses an end gateway and comes back. Exiting the world and reloading it makes loyalty work again.
Video: https://youtu.be/mtyiBHuKh3Y?t=3m52s
How to reproduce
Go to the end
Give yourself a trident enchanted with loyalty
/give @s minecraft:trident{Enchantments:[{id:"minecraft:loyalty",lvl:3}]}
Use an end gateway
Go back to the main island using the end gateway
→ ❌ Tridents will lose their ability to return to even though they have loyalty
Linked issues
is duplicated by
relates to
Comments

I just discovered that throwing the trident before entering the gateway is not necessary, the trident will not work even if it was in the inventory the whole time. Updated description accordingly.

Confirmed for 1.13.2-pre2.

Can confirm in 18w44a

Reproduced in 18w45a, but not in future versions. Appears to be resolved.

I can still reproduce it in 18w47b

Cannot reproduce in 1.17.1 Release Candidate 1.
Can confirm.