I've created a custom tab to my buddypress user profiles called 'goals'
It displays xprofile fields, I just need to know how to make a dynamic link on the subnav that points at the 'goals' xprofile edit link tab which for example would look like
The subnav is currently being generated via the following, however I've tried a few variations of the link parameter however can't get it to structure properly.
bp_core_new_subnav_item( array( 'name' => 'Edit Goals', 'slug' => 'edit-goals', 'parent_url' => 'goals', 'parent_slug' => 'goals', 'screen_function' => 'false', 'position' => 50, 'link' => get_option('siteurl') . '/profile/edit/group/8/' ) );