Interface IUrlSegmentProvider
Provides URL segments for content.
Namespace: Umbraco.Cms.Core.Strings
Assembly: Umbraco.Core.dll
Syntax
public interface IUrlSegmentProviderRemarks
Url segments should comply with IETF RFCs regarding content, encoding, etc.
Methods
View SourceGetUrlSegment(IContentBase, String)
Gets the URL segment for a specified content and culture.
Declaration
string GetUrlSegment(IContentBase content, string culture = null)Parameters
| Type | Name | Description | 
|---|---|---|
| IContentBase | content | The content. | 
| System.String | culture | The culture. | 
Returns
| Type | Description | 
|---|---|
| System.String | The URL segment. | 
Remarks
This is for when Umbraco is capable of managing more than one URL per content, in 1-to-1 multilingual configurations. Then there would be one URL per culture.