Creating a new tab and friendly url issue.

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 instead of is there a variable to check if friendly url are off in this class and change the href value accordingly?
    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: