• Модуль: crm
  • Путь к файлу: ~/bitrix/modules/crm/lib/webform/script.php
  • Класс: Bitrix\Crm\WebForm\Script
  • Вызов: Script::getPublicUrl
static function getPublicUrl(array $formData)
{
	if ($landingUrl = Internals\LandingTable::getLandingPublicUrl($formData['ID']))
	{
		return $landingUrl;
	}

	$link = self::getDomain() . self::$defaultFormPathSef;
	$link = str_replace(
		array('#id#', '#form_id#', '#form_code#', '#form_sec#'),
		array($formData['ID'], $formData['ID'], $formData['CODE'], $formData['SECURITY_CODE']),
		$link
	);

	return self::proxyUrl($link);
}