* @link https://www.oxidmodule.com */ declare(strict_types=1); namespace D3\PRGredirects\Modules\Core; use Exception; use OxidEsales\Eshop\Core\Registry; class Utils_PRGredirect extends Utils_PRGredirect_parent { public function d3PrgRedirect($url) { $url = str_ireplace("&", "&", $url); $headerCode = "HTTP/1.1 303 See Other"; try { $this->_simpleRedirect($url, $headerCode); Registry::getSession()->freeze(); } catch (Exception $e) { $e->debugOut(); } $this->showMessageAndExit(''); } }