I believe that codes are more secure than links because you choose whether to use them or not; with the link you go directly, and you don't even know where it might redirect you.