Documentation

landing.site.getPublicUrl

landing.site.getPublicUrl(
   $id
)

Method returns full site (sites) URL.

Parameters

Parameter Description Available from version
id Site ID. Can be array with IDs: in this case response will contain array with site URLs.

Example

BX24.callMethod(
   'landing.site.getPublicUrl',
   {
      id: [752, 751]
   },
   function(result)
   {
      if(result.error())
      {
         console.error(result.error());
      }
      else
      {
         console.info(result.data());
      }
   }
);


© «Bitrix24», 2001-2024