core-bundle/src/Resources/contao/models/PageModel.php
public function getAbsoluteUrl($strParams=null)
	{
		$this->loadDetails();

		$objUrlGenerator = System::getContainer()->get('contao.routing.url_generator');

		$strUrl = $objUrlGenerator->generate
		(
			($this->alias ?: $this->id) . $strParams,
			array
			(
				'_locale' => $this->rootLanguage,
				'_domain' => $this->domain,
				'_ssl' => (bool) $this->rootUseSSL,
			),
			UrlGeneratorInterface::ABSOLUTE_URL
		);

		$strUrl = $this->applyLegacyLogic($strUrl, $strParams);

		return $strUrl;
	}
public function getAbsoluteUrl($strParams=null)
	{
		$this->loadDetails();

		$objUrlGenerator = System::getContainer()->get('contao.routing.url_generator');

		$strUrl = $objUrlGenerator->generate
		(
			($this->alias ?: $this->id) . $strParams,
			array
			(
				'_locale' => $this->rootLanguage,
				'_domain' => $this->domain,
				'_ssl' => (bool) $this->rootUseSSL,
			),
			UrlGeneratorInterface::ABSOLUTE_URL
		);

		$strUrl = $this->applyLegacyLogic($strUrl, $strParams);

		return $strUrl;
	}
public function getAbsoluteUrl ( $ strParams = null ) { $ this -> loadDetails ( ) ; $ objUrlGenerator = System :: getContainer ( ) -> get ( 'contao.routing.url_generator' ) ; $ strUrl = $ objUrlGenerator -> generate ( ( $ this -> alias ? : $ this -> id ) . $ strParams , array ( '_locale' => $ this -> rootLanguage , '_domain' => $ this -> domain , '_ssl' => ( bool ) $ this -> rootUseSSL , ) , UrlGeneratorInterface :: ABSOLUTE_URL ) ; $ strUrl = $ this -> applyLegacyLogic ( $ strUrl , $ strParams ) ; return $ strUrl ; }
Generate an absolute URL depending on the current rewriteURL setting

@param string $strParams An optional string of URL parameters

@return string An absolute URL that can be used in the front end
Generate an absolute URL depending on the current rewriteURL setting