A URL field stores a single web address. Submitters enter it, and you choose which protocols are accepted. It is the base that link fields build on.
When to use it
- A record needs a destination link: a landing page, a campaign target, or a
mailto:address. - You want a clean, validated address to feed into a Tagged URL or Short URL field.
How a value is produced
When a submission is saved, Terminus Hub stores the address the submitter entered, or the Default value if the field was left blank. The address is kept as entered, apart from trimming leading and trailing spaces. Terminus Hub does not add a protocol for you. The value is then validated:- It must parse as a URL.
- Its protocol must be one of the field’s Allowed protocols.
- It must have an address after the protocol, such as a host, or a recipient for
mailto:. - When Allowed domains has entries, an
httporhttpsaddress must use one of those exact hostnames.mailto:addresses are not checked against the list. - When Validate URL is on, an
httporhttpshost must be a well-formed domain with a known top-level domain, and every host must resolve to at least one public address. A host that does not resolve, or resolves only to private or internal addresses, is rejected.
Settings reference
URL fields cannot have a prefix or suffix.
Example
Adestination_url field in a Campaign URL Builder model, with Required on and Allowed protocols narrowed to https only.
A submitter enters https://shop.acme.example/deals, which is stored as entered. Entering shop.acme.example with no scheme fails validation with must start with one of the following protocols: https. This field then feeds the campaign’s Tagged URL and Short URL fields.
Gotchas
- No protocol is added for you. Include
http://,https://, ormailto:. A bare host such asacme.examplealways fails validation. - Narrow the protocols to set policy. The default accepts
httpandhttps. Keep only https in Allowed protocols to require secure links, or add mailto for email addresses. - Validate URL checks the domain, not the page. With it on, a malformed domain (“is not a valid domain”), an unknown top-level domain (“has an invalid or unknown top-level domain”), a host that does not resolve, or a host that resolves only to private or internal addresses is rejected. It does not confirm the page loads. Placeholder domains such as
.exampleor.testfail this check. - Allowed domains match exact hostnames.
example.comdoes not allowwww.example.comorshop.example.com. List every hostname you accept. An address that is not on the list fails with “domain is not in the allowed list”. - It is the base for other link fields. A Tagged URL references a URL field as its base, and a Short URL can point at a URL or a Tagged URL field as its destination.
Related
- Tagged URL field: appends query parameters to a URL field.
- Short URL field: a short redirect over a URL or Tagged URL field.
- Fields