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