I found where the problem was. I’m new to BP so I’m still figuring it out, but I discovered that the template for dynamic group extension pages is bp-themes>bp-default>group>single>plugin.php rather than home.php. And the appropriate div id was set to ‘sub-nav’ in plugin.php whereas it was set to ‘object-nav’ in home.php.
Does anyone know if this is a mistake or was this intentional?