Click or drag to resize
AlternativeUrlHelperNormalizeAlternativeUrl Method
Ensures correct format of the alternativeUrl.

Namespace: CMS.DocumentEngine.Internal
Assembly: CMS.DocumentEngine (in CMS.DocumentEngine.dll) Version: 13.0.131
Syntax
C#
public static NormalizedAlternativeUrl NormalizeAlternativeUrl(
	string alternativeUrl
)

Parameters

alternativeUrl
Type: SystemString
Url in string to be normalized.

Return Value

Type: NormalizedAlternativeUrl
Remarks

Following rules are applied

Leading/trailing whitespace characters are trimmed.

Leading tilde with slash or leading slash is removed.

Multiple slashes are replaced by single slash.

Trailing slash is removed.

Query string and anchor is removed.

Value is decoded.

See Also