Overwrite internalLink functionality for specific URL structures

Jake B.

Well-known member
Currently in XenForo_Helper_String::getLinkClassTarget XenForo applies an "internalLink" class automatically if the host matches XenForo's host

Code:
$isInternal = ($host == XenForo_Application::$host);

However, this is causing an issue with one of our add-ons that allows URLs to be masked and linked via

Code:
/affiliate-links/?url=....
which then gets redirected to the appropriate place, just curious if there is a way to overwrite this functionality if the URL matches a specific route, from what I can tell we're not able to prevent this from happening since it's occurring when the parser runs through the post containing the URL, and the getLinkClassTarget is a static method so I can't easily extend it
 
Back
Top Bottom