From a134128f02b8161a2c38c0dd7e3e14e4e24e8e06 Mon Sep 17 00:00:00 2001 From: Aevann Date: Fri, 24 May 2024 06:44:37 +0300 Subject: [PATCH] consisteny in _blank --- files/helpers/sanitize.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/helpers/sanitize.py b/files/helpers/sanitize.py index becf01eba..b5cff6db8 100644 --- a/files/helpers/sanitize.py +++ b/files/helpers/sanitize.py @@ -575,8 +575,8 @@ def sanitize(sanitized, golden=True, limit_pings=0, showmore=False, count_emojis link.string = href #insert target="_blank" and ref="nofollower noopener" for external link + link["target"] = "_blank" if not href.startswith('/') and not href.startswith(f'{SITE_FULL}/'): - link["target"] = "_blank" link["rel"] = "nofollow noopener" if has_transform: