On anchor tag click function we use event.preventDefault() to prevent the link from opening. This was working fine so far. Recently, we migrated from DTM to Launch and from then the preventDefault method is not working.
In the below sample when we click on the "test page" link it should not change the URL. But it is changing the URL to "#testpage". In the same page please remove the adobe script and run. It won't change the URL.
Sample Page code:
I recommend you take a look at the Link Delay explainer.
The Click event from the Core extension uses this behavior when it is configured with the link delay option on. My guess is that you've got a Click Event with link delay turned on, and the selector in that event is selecting this link and doing what link delay is designed to do. You can turn off the link delay or refine the selector in that click event so that it doesn't trigger on this link.
Thanks for providing the answer. But, as per our web analytics team, turning off the link delay doesn't fix the problem.