I seem to be encountering a puzzling issue with a link on my website. When clicked normally, the link opens in a new window. However, if I right-click and select "open in new window" or "open in new tab," it just reloads the same page where the link was clicked from.
The link in question is labeled "Self Service Option" and triggers the function getSelfServSite() when clicked. Here's how the code operates in my specific scenario:
function getSelfServSite()
{
getToTheLink("${myConfigInfo.selfServiceURL}");
// this setup allows for configurability of the URL
}
function getToTheLink(url)
{
window.open (url, "currentWindow", "");
}
I'm at a loss as to what might be causing this unexpected behavior. My intention is for the link to always direct users to the correct destination regardless of how it was clicked.
If you have any insights or advice on resolving this matter, I would greatly appreciate it. Thank you.