src/BoomCMS/Support/Helpers/URL.php
public static function getInternalPath($url)
    {
        $path = parse_url($url, PHP_URL_PATH);

        return ($path === '/') ? $path : ltrim($path, '/');
    }
public static function getInternalPath($url)
    {
        $path = parse_url($url, PHP_URL_PATH);

        return ($path === '/') ? $path : ltrim($path, '/');
    }
public static function getInternalPath ( $ url ) { $ path = parse_url ( $ url , PHP_URL_PATH ) ; return ( $ path === '/' ) ? $ path : ltrim ( $ path , '/' ) ; }
Returns a path which can be used to query the database of internal URLs.

Removes the leading forward slash for non-root URLs
And removes everything except the path portion of the URL

@param string $url

@return string
Returns a path which can be used to query the database of internal URLs .