Remove <button> from Link Widget help text

Created on 23 January 2025, 1 day ago

Problem/Motivation

Currently, the Link Widget has help text by default that reads:

> Start typing the title of a piece of content to select it. You can also enter an internal path such as /node/add or an external URL such as https://example.com. Enter to link to the front page. Enter to display link text only. Enter to display keyboard-accessible link text only.

Often the link field is used in pieces (i.e., just the URL, for example), and if a user puts `` in there for some reason, it will not print the link text at all or sometimes it will break the page entirely, depending on the configuration. While the rest of the help text makes sense, this last scenario doesn't seem like it should be in there by default (but perhaps later added if indeed it is a use case.) The core help text is very hard to override, and I believe it can confuse site editors.

Steps to reproduce

- Add a link field to a content type
- Click to add a new piece of that content
- Note the help text provided by default for the Link field

Proposed resolution

I would suggest a patch to remove that last line in the help text.

Remaining tasks

I'll provide a patch for this shortly.

User interface changes

Revised help text for the link field widget.

Introduced terminology

N/A

API changes

N/A

Data model changes

N/A

Release notes snippet

Removing reference from link field widget help text.

πŸ“Œ Task
Status

Active

Version

11.0 πŸ”₯

Component

link.module

Created by

πŸ‡ΊπŸ‡ΈUnited States mndonx

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024