Gets the url for the published content item relative to the host root. This includes the (culture-specific) base url prefix if applicable.

public abstract string BuildRelativeUrl(IPublishedContent content, INodeCollectionHost host, Nullable<Dictionary<string, string>> routeValues)
Returns:
string

Parameters

The published content to get the url for.

The INodeCollectionHost for which to get the url. This is only used to determine the base url prefix (if any).

routeValues Nullable<Dictionary<string, string>>

In case of a route pattern url, the route values to be used.

In this article