private function _uriRelativeToHost($uri) { $uri = new Url($uri); return $uri->getHostRelativeUrl(); }