Skip to content

LinkField does not allow mailto: URLs #18782

@barthamark

Description

@barthamark

Describe the bug

The LinkField does not allow mailto: URLs. When entering a value like mailto:someone@example.com, the field validation rejects it as an invalid URL, even though mailto: is a valid and commonly used URI scheme for links.

Orchard Core version

2.2.1

To Reproduce

  1. Create or edit a content type with a LinkField
  2. Edit a content item of that type
  3. Enter mailto:test@example.com into the LinkField URL input
  4. Try to save the content item

Expected behavior

The LinkField should accept mailto: URLs and treat them as valid links, allowing the content item to be saved.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions