public static function getCurrentUrl()
    {
        return self::getCurrentScheme() . '://'
        . self::getCurrentHost()
        . self::getCurrentScriptName(false)
        . self::getCurrentQueryString();
    }
public static function getCurrentUrl()
    {
        return self::getCurrentScheme() . '://'
        . self::getCurrentHost()
        . self::getCurrentScriptName(false)
        . self::getCurrentQueryString();
    }
public static function getCurrentUrl ( ) { return self :: getCurrentScheme ( ) . '://' . self :: getCurrentHost ( ) . self :: getCurrentScriptName ( false ) . self :: getCurrentQueryString ( ) ; }
Returns the current URL.

@return string eg, `"http://example.org/dir1/dir2/index.php?param1=value1&param2=value2"`
@api
Returns the current URL .