Drupal.org profile link in display page is formatted incorrectly

Created on 25 January 2024, 5 months ago
Updated 23 April 2024, 2 months ago

Problem/Motivation

If an user has spaces in their username and it is added in the form input field, the link that is created in the display page is formatted incorrectly and takes the user to a wrong page.
Username - John Doe
Current link format - https://www.drupal.org/u/John%20Doe →
Expected link format - https://www.drupal.org/u/John-Doe →

Steps to reproduce

1. Add any username in the Drupal.org username form field with spaces (eg. John Doe) and save the form.
2. Open the display page and click the Drupal.org username link, it will take the user to a wrong page.

Proposed resolution

Remaining tasks

User interface changes

API changes

Data model changes

📌 Task
Status

Needs review

Version

2.0

Component

Code

Created by

🇮🇳India Soham Sengupta

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

Merge Requests

Comments & Activities

  • Issue created by @Soham Sengupta
  • First commit to issue fork.
  • Pipeline finished with Success
    2 months ago
    Total: 149s
    #154116
  • Pipeline finished with Success
    2 months ago
    Total: 170s
    #154120
  • Status changed to Needs review 2 months ago
  • 🇯🇵Japan tyler36 Osaka

    Attempt to fix issue.

    - trim username of leading and trailign spaces.
    - replace other spaces with '-'.

    Test with database provider also included. This should allow extra edge cases to be added if required.

  • Pipeline finished with Success
    2 months ago
    Total: 139s
    #154128
Production build 0.69.0 2024