Index: src/bp-groups/bp-groups-template.php
===================================================================
--- src/bp-groups/bp-groups-template.php	(revision 9446)
+++ src/bp-groups/bp-groups-template.php	(working copy)
@@ -316,12 +316,6 @@
 				$this->pag_arg => '%#%'
 			);
 
-			if ( defined( 'DOING_AJAX' ) && true === (bool) DOING_AJAX ) {
-				$base = remove_query_arg( 's', wp_get_referer() );
-			} else {
-				$base = '';
-			}
-
 			$add_args = array(
 				'num'     => $this->pag_num,
 				'sortby'  => $this->sort_by,
@@ -333,7 +327,7 @@
 			}
 
 			$this->pag_links = paginate_links( array(
-				'base'      => add_query_arg( $pag_args, $base ),
+				'base'      => add_query_arg( $pag_args, '' ),
 				'format'    => '',
 				'total'     => ceil( (int) $this->total_group_count / (int) $this->pag_num ),
 				'current'   => $this->pag_page,
Index: src/bp-members/bp-members-template.php
===================================================================
--- src/bp-members/bp-members-template.php	(revision 9446)
+++ src/bp-members/bp-members-template.php	(working copy)
@@ -316,12 +316,6 @@
 				$this->pag_arg => '%#%',
 			);
 
-			if ( defined( 'DOING_AJAX' ) && true === (bool) DOING_AJAX ) {
-				$base = remove_query_arg( 's', wp_get_referer() );
-			} else {
-				$base = '';
-			}
-
 			/**
 			 * Defaults to an empty array to make sure paginate_links()
 			 * won't add the $page_arg to the links which would break
@@ -334,7 +328,7 @@
 			}
 
 			$this->pag_links = paginate_links( array(
-				'base'      => add_query_arg( $pag_args, $base ),
+				'base'      => add_query_arg( $pag_args, '' ),
 				'format'    => '',
 				'total'     => ceil( (int) $this->total_member_count / (int) $this->pag_num ),
 				'current'   => (int) $this->pag_page,
Index: src/bp-messages/bp-messages-template.php
===================================================================
--- src/bp-messages/bp-messages-template.php	(revision 9446)
+++ src/bp-messages/bp-messages-template.php	(working copy)
@@ -208,12 +208,6 @@
 				$r['page_arg'] => '%#%',
 			);
 
-			if ( defined( 'DOING_AJAX' ) && true === (bool) DOING_AJAX ) {
-				$base = remove_query_arg( 's', wp_get_referer() );
-			} else {
-				$base = '';
-			}
-
 			$add_args = array();
 
 			if ( ! empty( $this->search_terms ) ) {
@@ -221,7 +215,7 @@
 			}
 
 			$this->pag_links = paginate_links( array(
-				'base'      => add_query_arg( $pag_args, $base ),
+				'base'      => add_query_arg( $pag_args, '' ),
 				'format'    => '',
 				'total'     => ceil( (int) $this->total_thread_count / (int) $this->pag_num ),
 				'current'   => $this->pag_page,
