• Модуль: main
  • Путь к файлу: ~/bitrix/modules/main/classes/general/component_ajax.php
  • Класс: CComponentAjax
  • Вызов: CComponentAjax::LocalRedirectHandler
function LocalRedirectHandler(&$url)
{
	if (!$this->bAjaxSession) return;

	if ($this->__isAjaxURL($url))
	{
		if (!$this->bIFrameMode)
			Header('X-Bitrix-Ajax-Status: OK');
	}
	else
	{
		if (!$this->bRestartBufferCalled)
			ob_end_clean();

		if (!$this->bIFrameMode)
			Header('X-Bitrix-Ajax-Status: Redirect');

		$this->bWrongRedirect = true;

		echo '';

		require_once($_SERVER["DOCUMENT_ROOT"].BX_ROOT."/modules/main/include/epilog_after.php");
		exit();
	}

	$url = CAjax::AddSessionParam($url, $this->componentID);

	$this->__removeHandlers();
}