cms icon indicating copy to clipboard operation
cms copied to clipboard

[5.x]: Link field does not accept hostnames (no TLD)

Open timoschwarzer opened this issue 8 months ago • 0 comments

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

  1. Have a Link field
  2. Enter a URL to a local hostname (e.g. https://wiki/)
  3. 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

timoschwarzer avatar Jun 16 '25 08:06 timoschwarzer