You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In some cases, especially in specific twig cases, it would be useful to allow the referral mechanism. While at it, I would also give the same option for noopener, even if there are few chances it be used, but it could when not using the _blank target. (Only useful in that case.) But one could desire this behaviour.
So here is a proposal to add three config options. This is fully backward compatible because they are "opt in" options. It asks the plugin to actually "do referrer" and "do opener". There is an additionnal option to even control the "do referrer" while using _blank target which would be a very voluntary risk. Usually, it is better to add "noreferrer" when using _blank target.
Hi,
In some cases, especially in specific twig cases, it would be useful to allow the referral mechanism. While at it, I would also give the same option for noopener, even if there are few chances it be used, but it could when not using the _blank target. (Only useful in that case.) But one could desire this behaviour.
So here is a proposal to add three config options. This is fully backward compatible because they are "opt in" options. It asks the plugin to actually "do referrer" and "do opener". There is an additionnal option to even control the "do referrer" while using _blank target which would be a very voluntary risk. Usually, it is better to add "noreferrer" when using _blank target.
Here is the code for ExternalLink.php
Starting at the actual code beginning with:
But from that point, change/update the code for the following:
Thank you and best regards!
The text was updated successfully, but these errors were encountered: