Prevent navigation on link click.