Creating a new tab and friendly url issue.

Renari

Member
When adding a navtab like so I'm running into an issue if friendly url is off, since the page that it needs to link to in this case would be http://site.com/index.php?home/ instead of http://site.com/home is there a variable to check if friendly url are off in this class and change the href value accordingly?
PHP:
    public static function addNavTab(array &$extraTabs, $selectedTabId)
    {
        $extraTabs['home'] = array(
            'title' => new XenForo_Phrase('addon_home'),
            'href'  => 'home',
            'selected' => ($selectedTabId == 'home'),
            'linksTemplate' => 'addon_subnav',
            'position'  =>  'home'
        );
    }
 
Last edited:
Back
Top Bottom