diff --git a/src/Model/Contact.php b/src/Model/Contact.php index 5507ba3d1..b5cecd732 100644 --- a/src/Model/Contact.php +++ b/src/Model/Contact.php @@ -112,10 +112,8 @@ class Contact extends BaseObject return $data['baseurl']; } - $urlarr = explode('/profile/', $url); - $basepath = $urlarr[0]; - - return $basepath; + // When we can't probe the server, we use some ugly function that does some pattern matching + return PortableContact::detectServer($url); } /**