diff --git a/internal/text/sanitize.go b/internal/text/sanitize.go index 96b7ef994..fd7ee2006 100644 --- a/internal/text/sanitize.go +++ b/internal/text/sanitize.go @@ -33,7 +33,8 @@ // Source: https://github.com/microcosm-cc/bluemonday#usage var regular *bluemonday.Policy = bluemonday.UGCPolicy(). RequireNoReferrerOnLinks(true). - RequireNoFollowOnLinks(true). + RequireNoFollowOnLinks(false). // remove the global default which adds rel="nofollow" to all links including local relative + RequireNoFollowOnFullyQualifiedLinks(true). // add rel="nofollow" on all external links RequireCrossOriginAnonymous(true). AddTargetBlankToFullyQualifiedLinks(true). AllowAttrs("class", "href", "rel").OnElements("a").