My goal is to display articles in a custom LC. I am able to achieve this and article links are clickable. On click of the article link opens the article detail in existing window. Working fine. However, on right click and opening the article link in a new tab, I am getting the blank page with error "about:blank#blocked". How do I facilitate the right click and open in new tab both work.. Thank you.
Code snippet for reference -
Lightning component:
<a> onclick="{!c.gotoArticle}" </a>
Lightning Controller
gotoArticle: function(cmp, event){
var whichPage = "/article/";
var whichArticleId = event.target.getAttribute('data-id');
var whichArticle = event.target.getAttribute('data-value');
var myURL = whichPage.concat(whichArticle.toString());
var urlEvent = $A.get("e.force:navigateToURL");
urlEvent.setParams({
"url": myURL
});
urlEvent.fire();
},