Buddypress: Autolink - Results only in the group, not the members directory

Hello,

I have created a Buddypress comunity where groups are cities and I would like to make the autolinks in the profile page to show only results from the group - city that the member belongs to . For example if a visitor is in the profile page of a member that belongs to group "London" and he clicks the autolink "doctor" I would like to see results only for doctors in group London, not all the doctors of every city in the country. How could I achieve that? Thank you!!