diff --git a/app/views/general/error.phtml b/app/views/general/error.phtml index 60afe86494..c6457ce98f 100644 --- a/app/views/general/error.phtml +++ b/app/views/general/error.phtml @@ -1,4 +1,6 @@ getParam('development', false); $type = $this->getParam('type', 'general_server_error'); $code = $this->getParam('code', 500); @@ -12,6 +14,15 @@ $label = ''; $labelClass = ''; $buttons = []; +$protocol = System::getEnv('_APP_OPTIONS_FORCE_HTTPS') == 'disabled' ? 'http' : 'https'; +$hostname = System::getEnv('_APP_DOMAIN'); +// TODO: remove this later +if (System::getEnv('_APP_ENV') === 'development') { + $hostname = 'localhost'; +} + +$url = $protocol . '://' . $hostname; + if($exception !== null && method_exists($exception, 'getCTAs')) { foreach ($exception->getCTAs() as $index => $cta) { $class = ($index === 0) ? 'bordered-button' : 'button'; @@ -94,6 +105,8 @@ switch ($type) { + + + + + + + + + + + + \ No newline at end of file