cms
cms copied to clipboard
[5.x]: Link field does not accept hostnames (no TLD)
What happened?
Description
Trying to enter a URL to a hostname in the local network does not work. Craft says the URL is invalid.
Steps to reproduce
- Have a Link field
- Enter a URL to a local hostname (e.g.
https://wiki/) - Save the entry
Expected behavior
The entry should save.
Actual behavior
Entry validation fails because the URL is considered invalid.
Craft CMS version
Craft Pro 5.7.10
PHP version
8.3.20
Operating system and version
Linux 6.15.2-zen1-1-zen
Database type and version
PostgreSQL 15.8
Image driver and version
GD 8.3.20
Installed plugins and versions
- N/A