Prevent the default action of share links