src/mako/http/routing/URLBuilder.php
public function to(string $path, array $queryParams = [], string $separator = '&', $language = true): string
	{
		$url = $this->baseURL . ($this->cleanURLs ? '' : '/' . $this->scriptName) . ($language === true ? $this->languagePrefix : (!$language ? '' : '/' . $language)) . $path;

		if(!empty($queryParams))
		{
			$url .= '?' . http_build_query($queryParams, '', $separator, PHP_QUERY_RFC3986);
		}

		return $url;
	}
public function to(string $path, array $queryParams = [], string $separator = '&', $language = true): string
	{
		$url = $this->baseURL . ($this->cleanURLs ? '' : '/' . $this->scriptName) . ($language === true ? $this->languagePrefix : (!$language ? '' : '/' . $language)) . $path;

		if(!empty($queryParams))
		{
			$url .= '?' . http_build_query($queryParams, '', $separator, PHP_QUERY_RFC3986);
		}

		return $url;
	}
public function to ( string $ path , array $ queryParams = [ ] , string $ separator = '&' , $ language = true ) : string { $ url = $ this -> baseURL . ( $ this -> cleanURLs ? '' : '/' . $ this -> scriptName ) . ( $ language === true ? $ this -> languagePrefix : ( ! $ language ? '' : '/' . $ language ) ) . $ path ; if ( ! empty ( $ queryParams ) ) { $ url .= '?' . http_build_query ( $ queryParams , '' , $ separator , PHP_QUERY_RFC3986 ) ; } return $ url ; }
Returns the URL of the specified path.

@param  string $path        Path
@param  array  $queryParams Associative array used to build URL-encoded query string
@param  string $separator   Argument separator
@param  mixed  $language    Request language
@return string
Returns the URL of the specified path .