Pass Variable to Member Profile in URL

Hi Guys,

I've recently got a 3rd party chat room working with BuddyPress. What I now need help for is when a member is logged into the chatroom and clicks on the integrated chat room members profile, for it to redirect to that members BuddyPress profile instead.

The URL of the BuddyPress profile is:

I believe that the variable needed to display the [username] of a logged in member is:


So, how do I combine the $current_user->user_login variable within a url to a given members profile?

Thanks for any help