getContentSiteUrls

Function

DEPRECATED: Calculates the relative and absolute urls for a given content on a specific site

DEPRECATED: Calculates the relative and absolute urls for a given content on a specific site

  • getContentSiteUrls(content: IHubContent, siteModel: IModel) : {
    absolute:
    string
    relative:
    string
    }

Parameters

Parameter Type Default Notes
content Required IHubContent
siteModel Required IModel

Returns

relative and absolute urls

{
absolute:
string
relative:
string
}

Function defined in common/src/content/index.ts:469