Index: bp-core.php
===================================================================
--- bp-core.php	(revision 2716)
+++ bp-core.php	(working copy)
@@ -611,9 +611,13 @@
 	global $current_blog;
 
 	if ( defined( 'BP_ENABLE_MULTIBLOG' ) )
-		$domain = get_blog_option( $current_blog->blog_id, 'siteurl' );
+		$domain = function_exists( 'get_home_url' ) ?
+			get_home_url( $current_blog->blog_id ) :
+			get_blog_option( $current_blog->blog_id, 'siteurl' );
 	else
-		$domain = get_blog_option( BP_ROOT_BLOG, 'siteurl' );
+		$domain = function_exists( 'get_home_url' ) ?
+			get_home_url( BP_ROOT_BLOG ) :
+			get_blog_option( BP_ROOT_BLOG, 'siteurl' );
 
 	return apply_filters( 'bp_core_get_root_domain', $domain );
 }
