- Issue created by @JSchref
- First commit to issue fork.
- πΊπΈUnited States smustgrave
Thinks should be in MRs but will need test coverage
The extlink module currently has a configuration option "Do not override rel="follow", if set"
that prevents the module from overriding manually set rel="follow" attributes when the nofollow
option is enabled. However, there is no equivalent option for the noreferrer functionality.
This patch adds a new configuration option "Do not override rel="referrer", if set" that works
similarly to the existing nofollow override option. When enabled, this option prevents the
module from adding rel="noreferrer" to links that already have rel="referrer" manually set.
Use case: Content editors may want to manually set certain external links to use rel="referrer"
to allow the destination site to see the referrer information, while still having the module
automatically add rel="noreferrer" to other external links for privacy/security reasons.
Changes included:
- New configuration setting extlink_referrer_no_override
- Form field with conditional visibility (only shows when noreferrer is enabled)
- JavaScript logic to check for existing rel="referrer" before adding rel="noreferrer"
- Configuration schema and default settings updated
This maintains consistency with the existing nofollow override functionality and provides
content editors with granular control over referrer policy on external links.
Downport
2.0
Code
Thinks should be in MRs but will need test coverage