targetHostName
Prev Next

The host name to use when generating URLs to items within this site from the context of another site.
If the targetHostName attribute is not available, Sitecore uses the value of the hostName attribute instead.
The attribute is only used when the value of the Rendering.SiteResolving setting is true.

If the Rendering.SiteResolving setting is true, and the dynamic link manager can determine a logical Web site for the linked item, and that site is not the context site, and the targetHostName attribute of that site has a value, then link manager uses the targetHostName attribute. If the targetHostName attribute has no value, and the hostName attribute has a value, and that value does not contain an asterisk character (“*”) or a pipe character (“|”), then the link manager uses the hostName attribute.

Default value: no default value. 


Prev Next