BeforeTypoLinkEncodedEvent 

The PSR-14 event \TYPO3\CMS\Core\LinkHandling\Event\BeforeTypoLinkEncodedEvent allows developers to fully manipulate the encoding of TypoLinks.

A common use case for extensions is to extend the TypoLink parts to allow editors adding additional information, for example, custom attributes can be inserted to the link markup.