Support relative URLs

Created on 27 April 2023, over 1 year ago
Updated 26 May 2023, over 1 year ago

Problem/Motivation

Currently the iFrame field widget allows the editor to enter a relative URL. However, the field formatter does not render an iframe with a relative URL and the following error is logged "InvalidArgumentException: The URI '/my-relative-url' is invalid. You must use a valid URI scheme."

Steps to reproduce

  1. Use a relative URL in the iframe field, like "/my-relative-url".
  2. View that field using the default iframe formatter.
  3. Note that the iframe does not render, and an error message appears in the Drupal logs.

Proposed resolution

Follow the same pattern as Drupal core's link module which is able to handle this.

Remaining tasks

User interface changes

API changes

Data model changes

πŸ› Bug report
Status

Fixed

Version

2.22

Component

Miscellaneous

Created by

πŸ‡ΊπŸ‡ΈUnited States chrissnyder Maryland

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024