Skip to content

isValidUrlFieldValue

isValidUrlFieldValue(value): boolean

Defined in: packages/core/src/fields/url/inputSchema.ts:23

Checks whether a URL field value is acceptable: either a site-relative path (SITE_RELATIVE_PATH_PATTERN) or an absolute URL accepted by z.url().

string

The candidate value.

boolean

true when value is a site-relative path or a valid absolute URL.