Code component editor UI "Link" prop type allows picking "full" vs "relative path", but is misleading

Created on 25 August 2025, 4 days ago

Overview

Surfaced at 📌 Support for latest 6.x version of justinrainbow/json-schema package Active .

Follow-up for Add support for creating links within code components Active .

Add support for creating links within code components Active introduced this UI:

The first results in type: string, format: uri, the second in type: string, format: uri-reference. Great!

However, "relative path" is slightly misleading: whenever relative URIs are allowed, absolute URIs are allowed too — that' show JSON Schema has defined format: uri-reference: https://opis.io/json-schema/2.x/formats.html#uri-reference

Proposed resolution

Clarify this:

  • Relative path → Internal links (relative and absolute URLs)
  • Full URL → External and internal links (absolute URLs)

Which is also what the Drupal "link" field type does:

User interface changes

📌 Task
Status

Active

Version

1.0

Component

Theme builder

Created by

🇧🇪Belgium wim leers Ghent 🇧🇪🇪🇺

Live updates comments and jobs are added and updated live.
  • Usability

    Makes Drupal easier to use. Preferred over UX, D7UX, etc.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024