Shadab
Well-known member
(1) Lines 272 - 275
Please consider removing this check, as it interferes with the link generation for "index" route prefix. This doesn't pose any problem in a stock xenforo instance; but it prevents us from utilizing the buildLink() method for building index links via the prefix handler.
Removing this condition shouldn't break anything else because XenForo_Link::buildBasicLink(), which is used as a fallback method, contains a similar check.
(2) Lines 370 - 377
The route class is instantiated directly here, instead of passing it through resolveDynamicClass() first. So any extended route prefix class doesn't get hooked; which makes it impossible to override the buildLink() method for any route prefix.
PHP:
if ($prefix === 'index' && $action === '' && $extension === '')
{
return '';
}
Removing this condition shouldn't break anything else because XenForo_Link::buildBasicLink(), which is used as a fallback method, contains a similar check.
(2) Lines 370 - 377
PHP:
$class = $info['route_class'];
if (!XenForo_Application::autoload($class))
{
return false;
}
$handler = new $class();