protected function prepareurl($host, $url) { parent::prepareurl($host, $url); if (strbegin($this->url, litepublisher::$mobile . '/') || $this->url == litepublisher::$mobile) { if ($this->url == litepublisher::$mobile) { $this->url = '/'; } else { $this->url = substr($this->url, strlen(litepublisher::$mobile)); } } }