public static function getPath( RequestInterface $request ) {
		$url = $request->getUrl();
		$relative_url = substr( $url, strlen( home_url( '/' ) ) );
		$relative_url = static::addLeadingSlash( $relative_url );
		$relative_url = preg_replace( '~\?.*~', '', $relative_url );
		$relative_url = static::addTrailingSlash( $relative_url );
		return $relative_url;
	}
public static function getPath( RequestInterface $request ) {
		$url = $request->getUrl();
		$relative_url = substr( $url, strlen( home_url( '/' ) ) );
		$relative_url = static::addLeadingSlash( $relative_url );
		$relative_url = preg_replace( '~\?.*~', '', $relative_url );
		$relative_url = static::addTrailingSlash( $relative_url );
		return $relative_url;
	}
public static function getPath ( RequestInterface $ request ) { $ url = $ request -> getUrl ( ) ; $ relative_url = substr ( $ url , strlen ( home_url ( '/' ) ) ) ; $ relative_url = static :: addLeadingSlash ( $ relative_url ) ; $ relative_url = preg_replace ( '~\?.*~' , '' , $ relative_url ) ; $ relative_url = static :: addTrailingSlash ( $ relative_url ) ; return $ relative_url ; }
Get the path for the request relative to the home url

@param  RequestInterface $request
@return string
Get the path for the request relative to the home url