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
- Navigate to /admin/structure/webform
- Locate an existing webform on the page and select "Settings" from the drop-down menu on the right side of the table
- Click on the Emails / Handlers link
- Edit an existing handler or create a new one
- In the right-hand admin panel, under Message and Body, select "Custom body..." from the drop-down menu
- Click on the "Browse available tokens" link below the WYSIWYG editing window
- In the Tokens modal, click on Webform submissions and scroll down to "Source URL"
- 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
Comments
Comment #5
jrockowitz commentedChanging to "The URL where the user submitted the webform submission."
@djmolny Thank you fore reporting this issue. In the future, instead of using negative words like "Incomprehensible token description," you might try to make a more positive suggestion like "Improve token description" or "Clarify token description."