Homepage.

@param string $url

@return Response
557292
public function home()
    {
        $page = $this->repository->findPagesByURL('home');

        $view = view('cms-frontend::pages.home');

        if (is_null($page)) {
            return $view;
        }

        return $view->with('page', $page);
    }
1191565
function Get($url) {
      $this->responseHeaders = $this->responseBody = '';

      $uri = $this->makeUri($url);

      if ($this->sendCommand('GET ' . $uri . ' HTTP/' . $this->protocolVersion)) {
        $this->processReply();
      }

      return $this->reply;
    }
1159325
public function url( string$url ):self
	{
		$url= parse_url($url);

		if( !is_array($url) )
			throw new \Exception("Url '$url' is invalid.");

		foreach( $url as $key=>$value )
		{
			$this->$key= $value;
		}

		return $this;
	}
547640
public function short($url)
    {
        $this->clear();
        $this->addUrl($url);
        $req = $this->out();

        if ('json' == $this->getFormat() || 'array' == $this->getFormat()) {
            return $req;
        }

        $return = $this->response;
        $this->clear();

        return $return;
    }
475186
public function setUrl($url)
    {
        $url = parse_url($url);

        $this->setHost($url['host']);

        if(isset($url['port']))
        {
            $this->setPort($url['port']);
        }

        return $this;
    }
1349670
private function transform($url) {
        $domains = App::acfg('domains@default');
        if (isset($domains[ VISITING_HOST ]) && $domains[ VISITING_HOST ]) {
            $dir = App::id2dir($domains[ VISITING_HOST ]);
            if ($url == 'index.html') {
                $url = $dir;
            } else {
                $url = $dir . '/' . $url;
            }
        }

        return $url;
    }
300209
public function setUrl($url)
    {
        if (strpos($url, '/') !== 0) {
            $url = '/' . $url;
        }
        $this->url = $url;
        return $this;
    }
848710
public static function getHostFromUrl($url)
    {
        $parsedUrl = parse_url($url);

        if (empty($parsedUrl['host'])) {
            return;
        }

        return Common::mb_strtolower($parsedUrl['host']);
    }
973697
protected function passToCmsController($url)
    {
        if (class_exists('\Cms\Classes\Controller')) {
            return App::make('Cms\Classes\Controller')->run($url);
        } else {
            return Response::make(View::make('backend::404'), 404);
        }
    }
1036074
public function parse($url)
    {
        $this->_fixUrlForParsing($url);

        if (empty($url->path) && !isset($url->query['option'])) {
            $url->path = (get_viewer()->guest()) ? 'pages' : 'dashboard';
        }

        $segments = explode('/', trim($url->path, '/'));
        $segments = array_filter($segments);

        if (!empty($segments)) {
            $component = array_shift($segments);
            $url->query = array_merge(array('option' => 'com_'.$component), $url->query);
            $component = str_replace('com_', '', $url->query['option']);
            $query = $this->getComponentRouter($component)->parse($segments);
            $url->query = array_merge($url->query, array('option' => 'com_'.$component), $query);
        }

        return $url;
    }
1058969
public function redirect($url)
    {
        if (preg_match(STATIC_URL_REGEX, $url)) {
            return $this->registerScript('window.location.replace("' . $url . '");');
        }
        return $this->registerScript('$.router.replace("' . $url . '");');
    }
772736
public function getRedirect($url)
    {
        $pages = $this->getRedirects();
        $url = $this->normalizeUrl($url);

        if (isset($pages[$url])) {
            return $pages[$url];
        }
    }
20084
public static function base($url) {
        if (preg_match('#^(/|(ht|f)tps?://).+#', $url)) {
            return $url;
        }
        $url = preg_replace('#/?index\.html?$#', '', $url);

        return WWWROOT_DIR . $url;
    }
650195
public function setUrl(string $url)
    {
        $this->url = $url;
        $this->connection = curl_init($url);

        return $this;
    }
63577
public function setUrl($url)
    {
        if (!empty($url) && ctype_print($url)) {
            $this->url = trim($url);
        }

        return $this;
    }
138951
public function setURL(URL $url)
    {
        $this->domain = $url->host;
        $this->path = $url->path;
        $this->secure = $url->secure;
        return $this;
    }
204140
protected function openUrl($url)
    {
        $browser = $this->getDefaultBrowser();
        if ($browser) {
            $opened = $this->getHelper('process')->run($this->stdOut, array($browser, $url));
            if ($opened) {
                $this->stdErr->writeln("<info>Opened</info>: $url");
                return;
            }
        } else {
            $this->stdErr->writeln("<error>Browser not found: $browser</error>");
        }
        $this->stdOut->writeln($url);
    }