TYPO3 Extension - Different behavior for links with different type (e.g. to access restricted pages).