computeLinks

Function

Compute the links that get appended to a Hub Template search result and entity

  • computeLinks(item: IItem, requestOptions: IRequestOptions) : IHubEntityLinks

Parameters

Parameter Type Default Notes

Available requestOptions

Property Type Notes

Returns

Property Type Notes
self string

Url to the entities canonical "self" For Items/Groups/Users, this will be the Home App url For other entities, it will be the canonical url

layoutRelative Optional string

Relative url to the entity's layout editing experience

siteRelative Optional string

Relative url of the entity, within a site

siteRelativeEntityType Optional string
thumbnail Optional string

Url to Thumbnail. May not include a token TODO: Why should we not include the token?

workspaceRelative Optional string

Relative workspace url of the entity, within a site


Function defined in common/src/templates/_internal/computeLinks.ts:18