diff --git src/bp-core/bp-core-catchuri.php src/bp-core/bp-core-catchuri.php
index ada5bf9..544af90 100644
--- src/bp-core/bp-core-catchuri.php
+++ src/bp-core/bp-core-catchuri.php
@@ -270,8 +270,19 @@ function bp_core_set_uri_globals() {
 				$after_member_slug = $bp_uri[ $uri_offset + 1 ];
 			}
 
+			/*
+			 * Filters the portion of the URI immediately following the 'members' slug.
+			 *
+			 * @since 2.6.0
+			 *
+			 * @param string $after_member_slug The portion of the URI immediately following the members
+			 *                                  slug (usually 'members').
+			 */
+			$after_member_slug = apply_filters( 'bp_core_set_uri_globals_after_member_slug', $after_member_slug );
+
 			// Are we viewing a specific user?
 			if ( $after_member_slug ) {
+
 				// If root profile, we've already queried for the user.
 				if ( $root_profile instanceof WP_User ) {
 					$bp->displayed_user->id = $root_profile->ID;
