In my application, there is a link set up like this:
<a href="/threads/my-first-thread/" @click="openThread">My first thread</a>
Currently, when the link is clicked, the browser follows the href link and also executes the "openThread" method. I want to maintain the link so that users can see where it will take them, but I don't want the browser to actually follow the link (I open a lightbox instead and change the URL with pushState). I only want it to trigger the specified method.
Is there a way to achieve this? Thank you!