protected function rewritePaginationLinks(array $data): array 	{ 		if (isset($data['links'])) { 			foreach ($data['links'] as &$link) { 				if (isset($link)) { 					$link = preg_replace('/^.[^\?.*]*/', url()->current(), (string) $link); 				} 			} 		}  		if (isset($data['meta']['path'])) { 			$data['meta']['path'] = url()->current(); 		}  		return $data; 	}