Ensures that a page has a unique URL segment (means it is unique among all its siblings on the same language).

This method will make sure that the UrlSegment is unique.

Namespace:  EPiServer.Core
Assembly:  EPiServer (in EPiServer.dll) Version: 5.2.375.236

Syntax

C#
public virtual string GetUniqueUrlSegment(
	PageData changedPage,
	PageReference destinationLink
)

Parameters

changedPage
Type: EPiServer.Core..::.PageData
The changed page.
destinationLink
Type: EPiServer.Core..::.PageReference
The destination link.

Return Value

An unique urlsegment for all siblings on the language

Remarks

Base class implementation will call GetChildren on destinationLink and check that no other sibling on the same language already has the same urlsegment. If so a unique segment is created.

See Also