source/Core/UtilsUrl.php
public function getCurrentUrl()
    {
        $oUtilsServer = \OxidEsales\Eshop\Core\Registry::getUtilsServer();

        $aServerParams["HTTPS"] = $oUtilsServer->getServerVar("HTTPS");
        $aServerParams["HTTP_X_FORWARDED_PROTO"] = $oUtilsServer->getServerVar("HTTP_X_FORWARDED_PROTO");
        $aServerParams["HTTP_HOST"] = $oUtilsServer->getServerVar("HTTP_HOST");
        $aServerParams["REQUEST_URI"] = $oUtilsServer->getServerVar("REQUEST_URI");

        $sProtocol = "http://";

        if (isset($aServerParams['HTTPS']) && (($aServerParams['HTTPS'] == 'on' || $aServerParams['HTTPS'] == 1))
            || (isset($aServerParams['HTTP_X_FORWARDED_PROTO']) && $aServerParams['HTTP_X_FORWARDED_PROTO'] == 'https')
        ) {
            $sProtocol = 'https://';
        }

        return $sProtocol . $aServerParams['HTTP_HOST'] . $aServerParams['REQUEST_URI'];
    }
public function getCurrentUrl()
    {
        $oUtilsServer = \OxidEsales\Eshop\Core\Registry::getUtilsServer();

        $aServerParams["HTTPS"] = $oUtilsServer->getServerVar("HTTPS");
        $aServerParams["HTTP_X_FORWARDED_PROTO"] = $oUtilsServer->getServerVar("HTTP_X_FORWARDED_PROTO");
        $aServerParams["HTTP_HOST"] = $oUtilsServer->getServerVar("HTTP_HOST");
        $aServerParams["REQUEST_URI"] = $oUtilsServer->getServerVar("REQUEST_URI");

        $sProtocol = "http://";

        if (isset($aServerParams['HTTPS']) && (($aServerParams['HTTPS'] == 'on' || $aServerParams['HTTPS'] == 1))
            || (isset($aServerParams['HTTP_X_FORWARDED_PROTO']) && $aServerParams['HTTP_X_FORWARDED_PROTO'] == 'https')
        ) {
            $sProtocol = 'https://';
        }

        return $sProtocol . $aServerParams['HTTP_HOST'] . $aServerParams['REQUEST_URI'];
    }
public function getCurrentUrl ( ) { $ oUtilsServer = \ OxidEsales \ Eshop \ Core \ Registry :: getUtilsServer ( ) ; $ aServerParams [ "HTTPS" ] = $ oUtilsServer -> getServerVar ( "HTTPS" ) ; $ aServerParams [ "HTTP_X_FORWARDED_PROTO" ] = $ oUtilsServer -> getServerVar ( "HTTP_X_FORWARDED_PROTO" ) ; $ aServerParams [ "HTTP_HOST" ] = $ oUtilsServer -> getServerVar ( "HTTP_HOST" ) ; $ aServerParams [ "REQUEST_URI" ] = $ oUtilsServer -> getServerVar ( "REQUEST_URI" ) ; $ sProtocol = "http://" ; if ( isset ( $ aServerParams [ 'HTTPS' ] ) && ( ( $ aServerParams [ 'HTTPS' ] == 'on' || $ aServerParams [ 'HTTPS' ] == 1 ) ) || ( isset ( $ aServerParams [ 'HTTP_X_FORWARDED_PROTO' ] ) && $ aServerParams [ 'HTTP_X_FORWARDED_PROTO' ] == 'https' ) ) { $ sProtocol = 'https://' ; } return $ sProtocol . $ aServerParams [ 'HTTP_HOST' ] . $ aServerParams [ 'REQUEST_URI' ] ; }
Return current url.

@return string
Return current url .