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
Users fill an external URLs in this field. This leads to no accessible profile pages.
Proposed resolution
Before the alias field, we pre-fill-in the current site address and leave the space behind empty for users to fill in. This way it is clearer what the url alias is about and it is easier to imagine what the url will look like. Also we add extra validation that will check if URL is relative.
Comment | File | Size | Author |
---|---|---|---|
#5 | social-url-alias-is-unclear-2887789-5.patch | 3.16 KB | ribel |
#4 | url-alias-is-unclear-2887789-4.patch | 3.14 KB | alex.ksis |
Comments
Comment #2
jochemvn CreditAttribution: jochemvn for Open Social commentedHow about adding an addon to the field? Not sure if it's sustainable, but it looks nice: https://v4-alpha.getbootstrap.com/components/input-group/
Not sure what you mean with: "This leads to no accessible profile pages". If they can fill something out there that leads to non existing pages, this is something we need to validate on submit.
Comment #3
maikelkoopman CreditAttribution: maikelkoopman as a volunteer and at Open Social for Open Social commentedWhat is meant is that users fill in in this field "http://www.domain.com" which results in their profile having the alias "http://www.domain.com/http://www.domain.com". I do agree we should validate it, but that it feedback afterwards. It is even better is we improve the design so users understand it and do it correctly in one try. I have added your idea for using input group add-ons.
Comment #4
alex.ksis CreditAttribution: alex.ksis as a volunteer and at Lemberg Solutions, Open Social for Open Social commentedHere is the patch and the PR for it: https://github.com/goalgorilla/open_social/pull/465
Comment #5
ribelHere is the new patch which fixes max-width of input field if URL is long.
Comment #6
frankgraave CreditAttribution: frankgraave for Open Social commentedThe pull request has been merged. This will be part of our upcoming 1.4 release!