Incomprehensible token description

Created on 9 April 2023, over 1 year ago
Updated 25 April 2023, over 1 year ago

Problem/Motivation

Our site uses a custom "Contact Us" page implemented with webform so that user submissions could be persisted, and so we could email a link to the site admins. We send a link rather than the entire user-supplied message because many are spam (despite several anti-spam measures), which causes ISPs to flag our messages as spam and sometimes block them altogether.

While looking through the tokens, I came across this incomprehensible description:

Source URL [webform_submission:source-url] The URL the user submitted the webform submission.

Steps to reproduce

  1. Navigate to /admin/structure/webform
  2. Locate an existing webform on the page and select "Settings" from the drop-down menu on the right side of the table
  3. Click on the Emails / Handlers link
  4. Edit an existing handler or create a new one
  5. In the right-hand admin panel, under Message and Body, select "Custom body..." from the drop-down menu
  6. Click on the "Browse available tokens" link below the WYSIWYG editing window
  7. In the Tokens modal, click on Webform submissions and scroll down to "Source URL"
  8. Observe the description: The URL the user submitted the webform submission

Proposed resolution

Replace the message with something that a) is valid English syntax, and b) actually describes what the token is for.

Remaining tasks

N/A

User interface changes

See above.

API changes

N/A

Data model changes

N/A

πŸ› Bug report
Status

Fixed

Version

6.1

Component

User interface

Created by

πŸ‡ΊπŸ‡ΈUnited States djmolny

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

Comments & Activities

Production build 0.71.5 2024