Click or drag to resize
IssueHelperGetBaseUrl Method
Creates a base URL for prefixing links in the given newsletter's issues.

Namespace: CMS.Newsletters
Assembly: CMS.Newsletters (in CMS.Newsletters.dll) Version: 8.2.23
Syntax
C#
public static string GetBaseUrl(
	NewsletterInfo newsletter,
	string url,
	string webApplicationVirtualPath,
	string appPath
)

Parameters

newsletter
Type: CMS.NewslettersNewsletterInfo
Newsletter
url
Type: SystemString
URL from which the base URL is created
webApplicationVirtualPath
Type: SystemString
Virtual path where web application is rooted
appPath
Type: SystemString
Application path

Return Value

Type: String
Base URL to use for resolution
Remarks
If the url parameter does not contain the protocol, http is assumed. If the url parameter contains empty path, SystemContext.ApplicationPath is used instead.
See Also