I found the problem. When I change the theme to bp-default and the link in the Group Directory is working. But oh boy, it is not theme it was the function.php that I add @boonebgorges codes is not working:
What’s the easiest way to change the default landing page for BuddyPress groups?
It was working in BP 1.6 but not BP 1.6.1. I deleted it. It works.
function bbg_set_new_group_default_subnav() {
global $bp;
if ( bp_is_group() ) {
// Set up your new default
$new_screen_function = 'groups_screen_group_forum';
$new_default_slug = 'forum';
$parent_slug = bp_get_current_group_slug();
if ( $function = $bp->bp_nav[$parent_slug] ) {
if ( !is_object( $function[0] ) )
remove_action( 'bp_screens', $function, 3 );
else
remove_action( 'bp_screens', array( &$function[0], $function[1] ), 3 );
}
$bp->bp_nav[$parent_slug] = &$new_screen_function;
if ( bp_is_groups_component() && !bp_current_action() ) {
if ( !is_object( $new_screen_function[0] ) ) {
add_action( 'bp_screens', $new_screen_function );
} else {
add_action( 'bp_screens', array( &$new_screen_function[0], $new_screen_function[1] ) );
}
$bp->current_action = $new_default_slug;
}
}
}
add_action( 'bp_setup_nav', 'bbg_set_new_group_default_subnav', 999 );
function bbg_set_new_group_default_action() {
global $bp;
if ( bp_is_group() && !bp_current_action() ) {
$bp->current_action = 'forum';
}
}
add_action( 'bp_setup_globals', 'bbg_set_new_group_default_action', 999 );
Mikey3D