Forum Replies Created

Viewing 1 replies (of 1 total)
  • hey I have been going crazy around this, as well, and since the code provided by other users don’t work anymore, here is my “logical” fix:

    simply change the standard behavior of opening all links in a new tab from true to false in line 53 of open-external-links-in-a-new-window.php. By this, no link will be opened in a new tab, but via the ‘Force links to open in a new window if they match:’ option in the settings, a single link type can be specified. This is definitely not a satisfying solution, but allows to ignore more than one link and serves my purpose. Hope this helps folks

    if(document.links[t].hasAttribute('onClick') == false) {
    				// forced if the address starts with http (or also https), but does not link to the current domain
    				if(all_links.href.search(/^http/) != -1 && all_links.href.search('".$blogdomain['host']."') == -1) {
    					// alert('Changeda '+all_links.href);
    					change_link = false;
    				}
    • This reply was modified 6 years, 11 months ago by nikneedshelp.
Viewing 1 replies (of 1 total)