External link help text should give an https example instead of http

Created on 13 March 2024, 10 months ago
Updated 2 April 2024, 9 months ago

Problem/Motivation

When adding an external link field, it automatically outputs help text that reads:

"This must be an external URL such as http://example.com."

Where at all possible, Drupal messaging should champion best practice, which in this case would be to use a https example link.

Steps to reproduce

  • Add a link field to a content type
  • Choose 'External link'
  • Save

And then view the help text on the edit/add forms.

Proposed resolution

Replace the http reference with https

"This must be an external URL such as http://example.com."

Change needed in:
web/core/modules/link/src/Plugin/Field/FieldWidget/LinkWidget.php
web/core/modules/link/src/Plugin/Field/FieldType/LinkItem.php

Plus any test fixes

User interface changes

A single character on the add/edit forms

📌 Task
Status

Fixed

Version

10.3

Component
Link 

Last updated 5 days ago

Created by

🇬🇧United Kingdom dreamleaf

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

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

  • Quick fix

    Very small and simple change. Preferred over Quickfix.

Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024