Change
PHP Code:
}elseif ($var_linksList[$i]['altURL']) {//check for current page in alturl
$active = (strstr($var_linksList[$i]['altURL'],'main_page=' . $current_page_base))?' class="activeILPage"': '';
} ?>
to
PHP Code:
}elseif ($var_linksList[$i]['altURL']) {//check for current page in alturl
$active = (strstr($var_linksList[$i]['altURL'],'main_page=' . $current_page_base) or ((strstr($var_linksList[$i]['altURL'],'/index.php') == '/index.php') and ($current_page_base == 'index')))?' class="activeILPage"': '';
} ?>
This may still be subject to false positives with certain kinds of custom page names, so I will work on tightening it up; meanwhile this should work for common pages.
Bookmarks