/**
  * Redirects to target url if context supports it
  * 
  * @param string $a_target
  * @param string $a_message_id
  * @param array $a_message_details
  */
 protected static function redirect($a_target, $a_message_id, $a_message_static)
 {
     // #12739
     if (defined("ILIAS_HTTP_PATH") && !stristr($a_target, ILIAS_HTTP_PATH)) {
         $a_target = ILIAS_HTTP_PATH . "/" . $a_target;
     }
     if (ilContext::supportsRedirects()) {
         ilUtil::redirect($a_target);
     } else {
         $message = self::translateMessage($a_message_id, $a_message_static);
         // user-directed linked message
         if (ilContext::usesHTTP() && ilContext::hasHTML()) {
             $link = self::translateMessage("init_error_redirect_click", array("en" => 'Please click to continue.', "de" => 'Bitte klicken um fortzufahren.'));
             $mess = $message . '<br /><a href="' . $a_target . '">' . $link . '</a>';
         } else {
             // not much we can do here
             $mess = $message;
             if (!trim($mess)) {
                 $mess = self::translateMessage("init_error_redirect_info", array("en" => 'Redirect not supported by context.', "de" => 'Weiterleitungen werden durch Kontext nicht unterstützt.')) . ' (' . $a_target . ')';
             }
         }
         self::abortAndDie($mess);
     }
 }
 /**
  * Redirects to target url if context supports it
  * 
  * @param string $a_target
  * @param string $a_message_details
  */
 protected static function redirect($a_target, $a_message_details)
 {
     if (ilContext::supportsRedirects()) {
         ilUtil::redirect($a_target);
     } else {
         // user-directed linked message
         if (ilContext::usesHTTP() && ilContext::hasHTML()) {
             $mess = $a_message_details . ' Please <a href="' . $a_target . '">click here</a> to continue.';
         } else {
             // not much we can do here
             $mess = $a_message_details;
             if (!trim($mess)) {
                 $mess = 'Redirect not supported by context (' . $a_target . ')';
             }
         }
         self::abortAndDie($mess);
     }
 }