Click or drag to resize
CMSABTestOverviewPageShortenUrl Method
Shortens URL, adds dots and rounds URL length to the nearest slash occurrence.

Namespace: CMS.OnlineMarketing.Web.UI
Assembly: CMS.OnlineMarketing.Web.UI (in CMS.OnlineMarketing.Web.UI.dll) Version: 13.0.131
Syntax
C#
protected string ShortenUrl(
	string url,
	int maxLength = 22
)

Parameters

url
Type: SystemString
maxLength (Optional)
Type: SystemInt32

Return Value

Type: String
Unchanged URL, if maxLength doesn't exceed length of url or shortened URL in format '../something/something'
See Also