Click or drag to resize
URLHelperIsLocalUrl Method
Returns true if the given URL is located on current server.

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 8.2.23
Syntax
C#
public static bool IsLocalUrl(
	string url,
	string currentDomain
)

Parameters

url
Type: SystemString
URL to check.
currentDomain
Type: SystemString
Current server domain.

Return Value

Type: Boolean
See Also