Decide if we should accept actual username or URL slugs

Created on 16 October 2023, 8 months ago
Updated 10 January 2024, 6 months ago

Problem/Motivation

The field, by default, displays a prefix " https://www.drupal.org/u/ → ". This implies to the user that they need to fill in the username as displayed in the URL. However, the module actually invokes the API to get the user information and hence it needs the actual username. This creates confusion when username is different from the URL slug (for example, when there is a space in the username).

Steps to reproduce

Try adding a username with space or other characters.

Proposed resolution

These are the options:
- Remove the prefix and accept a username.
- Keep the prefix and accept a space. This means we should first read the URL slug to find the user ID.
- Support both cases and give precedence to the actual username and then the URL slug if a user was not found. This could lead to confusion if not clearly communicated.

Remaining tasks

Decide which method to pick.

User interface changes

API changes

Data model changes

📌 Task
Status

Active

Version

2.0

Component

Miscellaneous

Created by

🇨🇦Canada hussainweb

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

Comments & Activities

  • Issue created by @hussainweb
  • 🇮🇳India abhaysaraf

    As the description of the module says that it accepts the D.O usernames. I think our understanding of Drupal username is with the username field value that we have at /user/{uid}/edit page and it would be a good idea to use it instead of URL slug. I would vote to go with the first proposed option to 'Remove the prefix and accept a username'.

Production build 0.69.0 2024