CampaignAssetUrlInfoHelperNormalizeAssetUrlTargetInternal Method |
Namespace: CMS.WebAnalytics
protected virtual string NormalizeAssetUrlTargetInternal( string url, SiteInfo site = null )
Exception | Condition |
---|---|
UriFormatException | Given url is an invalid Uniform Resource Identifier (URI). |
ArgumentException | Site is not content only or does not contain correct SitePresentationURL. |
InvalidOperationException | When given url does not belong to given site (url is checked against site's SitePresentationURL). |
If site's presentation url 'http://your-domain.com/virt_dir/' and url is 'http://your-domain.com/virt_dir/some_page', then returned URL is '/some_page'.
'http://your-domain.com/landing_page/' is not normalized.
String.Empty is not normalized.
'/' is normalized.
'landing/page' is not normalized.
'/landing/page' is normalized.
'/landing/page/' is not normalized.