I've set the module to display a pop-up warning when an external link is clicked, but the warning box is appearing for links in body fields that use the Shortcodes text format.

Page on my website that does not use Shortcodes (warning pop-up appears when an external link is clicked): https://www.ocadsv.org/resources/browse/287

Page that does use Shortcodes (extlink pop-up does not appear when an external link is clicked): https://www.ocadsv.org/find-help/by-county

I'm a webmaster, not a Drupal whiz by any stretch of the imagination, so if you need any more information please let me know. I really appreciate any help!

Comments

pdxgimlet created an issue. See original summary.

pdxgimlet’s picture

Issue summary: View changes
elachlan’s picture

Interesting. most of the links do not have the external links icon. But in the "Filing a grievance or complaint" section it does. None of them seem to show the popup.

I'd say its an issue with the sub domain matching and a separate issue with the popup. Can you list the settings you are using?

elachlan’s picture

I extracted your settings from the console.

"{"extTarget":0,"extClass":"ext","extLabel":"(link is external)","extImgClass":0,"extIconPlacement":0,"extSubdomains":1,"extExclude":"(.\\.abilafundraisingonline\\.com\\/.)|(.\\.ocadsv\\.org\\/.)|(ocadsv\\.libib\\.com\\/.)|(.\\.surveymonkey\\.com\\/.)|(.\\.google\\.com\\/.)|(.\\.browsehappy\\.com\\/.)|(us12\\.campaign-archive\\.com\\/.)","extInclude":"","extCssExclude":".cfapps-welcome-bar-content","extCssExplicit":"","extAlert":"_blank","extAlertText":"This link will take you to an external web site not managed by the Oregon Coalition Against Domestic and Sexual Violence. Press OK to continue.","mailtoClass":"mailto","mailtoLabel":"(link sends e-mail)"}"

I can't see what would cause it, but some of the links have the icon and some don't. All of them do not have the attached click method.

I suggest you remove the exclude regex and css and try again? If you can isolate it, we should be able to fix it.

neslee canil pinto’s picture

Status: Active » Closed (works as designed)