Closed svale closed 2 years ago
Not quite sure why I added nofollow
. But yes, it should only be applying this for links that have a new window option set. Looks like this is a Tiptap inherited thing. But also, to be fair this is only in the editor, not when we output the content of the field via Twig.
Fixed for the next release. To get the fix early, change your verbb/vizy
requirement in composer.json
to:
"require": {
"verbb/vizy": "dev-craft-3 as 1.0.15",
"...": "..."
}
Then run composer update
.
Fixed in 1.0.16
Hi!
We are seeing an issue where inline links in the Vizy text editor are stuck with a
rel="noopener noreferrer nofollow"
attribute. This is reasonable (though perhaps preferable with justnoopener noreferrer
) for links opening in new windows. However it is unfortunate for other (and especially internal) links.Internal links could be an entry or plain link format, but either way they should not have the
rel
-attribute if not target is not_blank
. They also seem to get stuck with an emptytarget
-attribute.Steps to reproduce
Additional info
Additional context Perhaps the issue could be resolved by more actively unsetting the attribute in https://github.com/verbb/vizy/blob/58a30d991a8fde69682382e36ecd958febe15262/src/marks/Link.php#L22 E.g:
Thank you for providing fantastic plugins!