• Resolved commstrat

    (@comstrat)


    So far, in the Settings, I have been able to set only one link to be ignored (not opened in a new window). I tried with two links, separated with a space, a comman and a semi-colon. None of those standard coding separators worked. Did the authors of this plugin mean to only permit one link to be ignored? If so, and if they are reading this, please update the label to indicate only one allow. Otherwise, update the label to let us know what kind of separator is needed to enable more than one link in the ignored list. Surprised by this UX oversight.

Viewing 6 replies - 1 through 6 (of 6 total)
  • Can you provide a screenshot or the URLs you entered?

    Thread Starter commstrat

    (@comstrat)

    OK, great, so you are confirming that the user CAN set the plugin to ignore more than one link.

    Can you first disclose what separator is needed between each URL in the entry field, so that I can test. Comma? Semi-colon? Slash?

    If I then cannot get it to work, will send screenshots and videos.

    Thanks.

    leekianseng

    (@leekianseng)

    hello,

    i also want to know How to Ignore More Than One Link?

    site1.com,site2.com > it doesn’t work.

    thanks.

    davenoakes

    (@davenoakes)

    I am also looking for the answer to this

    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 5 years, 9 months ago by nikneedshelp.

    I wanted to check in on this. I’m looking to force .pdf & .doc to open as if they were external links but I can’t get them both to work. Is there a way to set both of them? Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘How to Ignore More Than One Link?’ is closed to new replies.