The page "Implementing a custom LinkHandler" still uses RequireJS which is not supported anymore in current TYPO3 versions:
https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/LinkHandling/Linkhandler/CustomLinkHandlers.html
(scroll down to the JavaScript example)
The page "Implementing a custom LinkHandler" still uses RequireJS which is not supported anymore in current TYPO3 versions:
https://docs.typo3.org/m/typo3/reference-coreapi/main/en-us/ApiOverview/LinkHandling/Linkhandler/CustomLinkHandlers.html
(scroll down to the JavaScript example)