From 3173f6b79578b8ace034049ee8b3793dd389f14a Mon Sep 17 00:00:00 2001 From: Alexander Killing Date: Sat, 16 Nov 2024 22:46:20 +0100 Subject: [PATCH] 36955: Different appearance of xln and https:// links --- Services/Link/js/ilExtLink.js | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/Services/Link/js/ilExtLink.js b/Services/Link/js/ilExtLink.js index de24303379ce..0d13fab4ed2f 100644 --- a/Services/Link/js/ilExtLink.js +++ b/Services/Link/js/ilExtLink.js @@ -15,13 +15,9 @@ il.ExtLink = { } }); if (typeof link_class !== "undefined") { - $(selector + " a.linkified").addClass(link_class); + $(selector).find('a.linkified').addClass(link_class); } - if (typeof selector === "string") { - $(selector + " a.linkified[target='_blank']").attr("rel", "noreferrer noopener"); - } else { - $(selector).find("a.linkified[target='_blank']").attr("rel", "noreferrer noopener"); - } + $(selector).find("a.linkified[target='_blank']").attr("rel", "noreferrer noopener"); } }