Prevent navigation on contract link click