isEnterprisePortalUrl

Function

Checks if a URL is an ArcGIS Enterprise portal URL, by checking if it starts with https:// has one or more subdomains before arcgis.com. If it does, then it is NOT an Enterprise portal URL.

  • isEnterprisePortalUrl(url: string) : boolean

Parameters

Parameter Type Default Notes
url Required string

The URL to check.

Returns

True if the URL is an Enterprise portal URL, false otherwise.

boolean

Function defined in common/src/urls/isEnterprisePortalUrl.ts:8