Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
When a user enters a path in a widget that does not match an autocomplete result and does not begin with one of the allowed characters, they receive the message:
This message is a little confusing, because it can be read as that a comma is one of the allowed characters, and also looks sort of like a string of keyboard-mashing swearing. :P
Proposed resolution
Update the message:
Beta phase evaluation
Unfrozen changes | Unfrozen because it only changes user interface text. |
---|---|
Prioritized changes | The main goal of this issue is usability, so it is a prioritized change (in addition to being unfrozen). |
Disruption | No disruption |
Remaining tasks
Patch needs review.
User interface changes
Before
After
API changes
None.
Comment | File | Size | Author |
---|---|---|---|
#29 | 2431085-29.patch | 2.34 KB | jofitz |
#14 | Add_menu_link___Site-Install.png | 23.83 KB | xjm |
#14 | link-2431085-14.patch | 2.22 KB | xjm |
#8 | link-error-2431085-8.patch | 2.16 KB | pjbaert |
#6 | link-error-2431085-6.patch | 2.16 KB | pjbaert |
Comments
Comment #1
xjmComment #2
xjmComment #3
geertvd CreditAttribution: geertvd commentedMakes sense, looks more clear now.
Comment #6
pjbaertReroll
Comment #8
pjbaertAdded a serial comma
Comment #9
Wim LeersUGH!
That looks so very silly.
https://www.drupal.org/style-guide/content#english only applies to
drupal.org
, notDrupal
AFAICT?(Sorry, xjm & pjbaert :P)
Comment #10
geertvd CreditAttribution: geertvd commentedSame logic was applied (and discussed) in other tickets so I think this can be RTBC
#2181653: Comma fault at database configuration overview
#2191429: Form API topic in form.inc is really out of date
Comment #11
xjmCan you clarify what looks silly?
We use AE spelling and punctuation in both, but I'm more concerned about the message being confusing.
Comment #12
Wim LeersYeah sorry about that, just ignore #9. (In every language I learned, that serial comma is considered absolutely not-done — you'd pretty much fail your test if you did this :P. But if this is the rule in American English, so be it. It was more of an instinctive reaction. My bad.)
The message may still be programmer-focused. We're used to quotes for indicating a string. Perhaps we should explicitly mention
?Comment #13
xjmThat's a good idea; rerolling with that.
Comment #14
xjmHow's this?
Comment #15
xjmI also find myself wondering if the message is sufficient for the user to understand what they entered incorrectly, actually. The user will also get this error if they try to autocomplete something, but nothing is matched before they submit the form. Is that a concern?
The field's help text says:
Comment #16
xjmTagging for a usability review.
Comment #17
Bojhan CreditAttribution: Bojhan commentedI have no idea what this message is trying to tell me? What is a manually entered path? Don't I always enter that manually?
Comment #18
dawehnerWell, you often end up having something coming from an autocompletion, but i'm not sure whether its worth distinguishing these two cases in the error message.
Comment #19
Anonymous (not verified) CreditAttribution: Anonymous commentedI wouldn't differentiate between the two cases. Couldn't we just change it to: "Internal paths should..."? The description (cf. #15) already gives an example of what an internal path is.
Comment #25
mstrelan CreditAttribution: mstrelan commentedWe're finding some users are trying to enter external URLs without a protocol, eg. www.example.com instead of http://www.example.com. In this case they are getting confused by the message and prefixing this with a forward-slash. Perhaps the message needs to include http(s):// as a valid prefix.
Comment #26
borisson_I think that the use-case in #25 is something that should probably be done in a new issue.
Comment #28
borisson_The patch in #14 no longer applies.
Comment #29
jofitz CreditAttribution: jofitz at jofitz commentedRe-rolled
Comment #30
dawehnerThat's a fair point. I think the patch already improves something
Comment #31
catchThis seems like a good incremental improvement, I'm not sure if it's enough, but also don't have any ideas for more that we should do.
Committed 94098ff and pushed to 8.7.x. Thanks!