The x label of my plotly diagram contains a link to the selected data point:
let str = '<a href="' + url + '"target=' + '_self' + '>' + cycleStart[1] + '</a>';
But the link is always opened in a new tab. I know that the target attribute causes this problem. But as you can see my simple solution is not working. I already searched
target="_blank"
in the plotly.min js file and changed it into
target="_self"
Also this does not work for me. So how can I prevent this Tag from opening a new tab? I want the url to open in the same window.