src/Http/Request.php
/**
	 * Gets the absolute URL for the request without query parameters.
	 * Example: "https://www.domain.com/path/to/file"
	 *
	 * @param string|null $path
	 * @return string
	 */
Gets the absolute URL for the request without query parameters.

@param string|null $path
@return string
Gets the absolute URL for the request without query parameters . @param string|null $path @return string
public function url($path = null) {
		if ($path) {
			return preg_replace('/\?.*/', '', $this->getUriForPath('/' . ltrim($path, '/')));
		}
		return preg_replace('/\?.*/', '', $this->getUri());
	}
public function url ( $ path = null ) { if ( $ path ) { return preg_replace ( '/\?.*/' , '' , $ this -> getUriForPath ( '/' . ltrim ( $ path , '/' ) ) ) ; } return preg_replace ( '/\?.*/' , '' , $ this -> getUri ( ) ) ; }
Gets the absolute URL for the request without query parameters.
Gets the absolute URL for the request without query parameters .