source/Core/Utils.php
protected function _simpleRedirect($sUrl, $sHeaderCode)
    {
        $oHeader = oxNew(\OxidEsales\Eshop\Core\Header::class);
        $oHeader->setHeader($sHeaderCode);
        $oHeader->setHeader("Location: $sUrl");
        $oHeader->setHeader("Connection: close");
        $oHeader->sendHeader();
    }
protected function _simpleRedirect($sUrl, $sHeaderCode)
    {
        $oHeader = oxNew(\OxidEsales\Eshop\Core\Header::class);
        $oHeader->setHeader($sHeaderCode);
        $oHeader->setHeader("Location: $sUrl");
        $oHeader->setHeader("Connection: close");
        $oHeader->sendHeader();
    }
protected function _simpleRedirect ( $ sUrl , $ sHeaderCode ) { $ oHeader = oxNew ( \ OxidEsales \ Eshop \ Core \ Header :: class ) ; $ oHeader -> setHeader ( $ sHeaderCode ) ; $ oHeader -> setHeader ( "Location: $sUrl" ) ; $ oHeader -> setHeader ( "Connection: close" ) ; $ oHeader -> sendHeader ( ) ; }
redirects browser to given url, nothing else done just header send
may be used for redirection in case of an exception or similar things

@param string $sUrl        the URL to redirect to
@param string $sHeaderCode code to add to the header(e.g. "HTTP/1.1 301 Moved Permanently", or "HTTP/1.1 500 Internal Server Error"
redirects browser to given url nothing else done just header send may be used for redirection in case of an exception or similar things