Let's see if I explain ...
I have a view in which I have a href that is given by a javascript function that I have in a .js file.
The fact is that the link is perfectly generated, simply the javascript function has a
window.location.href = "link que se genera"
When you click with the left button the link opens in the same window and tab, but if you hit the right button - > open in a new tab this is what happens:
about: blank
in principle I do not have any prevent or anything so it should not be interfering with the clicks and I do not manage them in any way since it generates a normal url.
Any ideas?
The code is more or less this
In the view:
<a rel="nofollow" href="javascript:link.Generator.go('<?echo$pageId?>')" class="automatic"></a>
And the js:
go: function(id){
window.location.href = baseUrl+'/id/'+id;
}