This is excellent, but I just noticed that clicking on the avatar image at the top right, opens another tab instead of opening the dropdown menu.
It also happens by clicking on the choice of the stripe plan, it opens a new tab.
Any ideas to fix it?
EDIT
this seems to work, if it can be optimized, I would like to know
<script>
var links = document.querySelectorAll('a');
links.forEach((link) => {
var a = new RegExp('/' + window.location.host + '/');
if(link.href.indexOf("javascript") == -1){
if(!a.test(link.href)) {
link.addEventListener('click', (event) => {
event.preventDefault();
event.stopPropagation();
window.open(link.href, '_blank');
});
}
}
});
</script>