<a href="https://google.com" class="some-link">tap1</a>
<a href="https://google.com" class="some-link">tap2</a>
<a href="https://google.com" class="some-link">tap3</a>
<script>
const link = document.querySelector('a.some-link');
link.addEventListener('click', event => {
event.preventDefault();
window.open(location.href);
location.assign(link.href);
});
</script>