Webform link element - empty title

Created on 10 August 2023, 11 months ago
Updated 5 September 2023, 10 months ago

Problem/Motivation

If you configure a webform link element to collect only the url but not the title, the output for the element is empty as there will be no title on the link render element. From my point of view it would be better to output the url value as string for the title. This is as far as I know also the way Drupal core does it for a link element that allows only url but no title (which is similar to collect only url in a webform link I suppose).
One could maybe also introduce a configuration option to choose whether to use this behavior. But I cannot think of a case where it might be useful or desired to have an empty output in case only url is collected (if you don't want to output, you can hide it otherwise).

Steps to reproduce

Use a webform link element and configure it to only collect the url, but not the title

Proposed resolution

insert url string as title if title is empty.

Remaining tasks

User interface changes

Output url string as title if no title is set on link element.

🐛 Bug report
Status

Fixed

Version

6.1

Component

Code

Created by

🇩🇪Germany stefan.korn Jossgrund

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

Comments & Activities

Production build 0.69.0 2024