Add help message on entity form field

Created on 31 March 2021, over 3 years ago
Updated 30 August 2023, 10 months ago

Problem/Motivation

Some people new to working with Drupal get confused by the "URL Redirect" field on node pages, they think it's for indicating where views to the current node page will be redirected to, rather than providing a way for other URLs to redirect to this URL.

Proposed resolution

Provide a brief message in the fieldset that explains the redirects are for other URLs that will redirect to this one.

Remaining tasks

Provide a patch.

User interface changes

Provide a brief message shows in the entity form fieldset that explains the redirects are for other URLs that will redirect to this one.

API changes

n/a

Data model changes

n/a

โœจ Feature request
Status

RTBC

Version

1.0

Component

User interface

Created by

๐Ÿ‡บ๐Ÿ‡ธUnited States DamienMcKenna NH, USA

Live updates comments and jobs are added and updated live.
  • Novice

    It would make a good project for someone who is new to the Drupal contribution process. It's preferred over Newbie.

Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States Kristen Pol Santa Cruz, CA, USA

    Assigning to myself as I'm triaging all RTBC issues.

  • Status changed to Needs work 11 months ago
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States Kristen Pol Santa Cruz, CA, USA

    The patch still applies and it does what is expected. See screenshots. To be honest, I'm not loving the wording, so I will see if I can come up with something right now.

    @aobah When reviewing, please do not add the patch that was already included. Thanks.

    @lucienchalom When moving to RTBC, please explain whether you reviewed the code or tested the patch or both. For testing, explain the testing process. Thanks.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States Kristen Pol Santa Cruz, CA, USA

    Forgot my screenshots:

    Before:

    After:

  • Issue was unassigned.
  • Status changed to Needs review 11 months ago
  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update 11 months ago
    63 pass
  • ๐Ÿ‡บ๐Ÿ‡ธUnited States Kristen Pol Santa Cruz, CA, USA

    I reworded it to be more helpful (IMO). I'd like someone to review the wording before I commit this patch.

    Before:

    This field is for others URLs to be redirected to.
    

    After:

    Click the "Add URL redirect" button and enter a URL that will redirect to this content. If the URL of this content ever changes, adding a URL redirect ensures your users will find this content when using the old URL.
    

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States DamienMcKenna NH, USA

    Thanks for following up on this, Kristen. Instead of "your users" how about "visitors"?

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States Kristen Pol Santa Cruz, CA, USA

    Thanks, Damien. Iโ€™ll try to make this change later today.j

  • Open in Jenkins โ†’ Open on Drupal.org โ†’
    Core: 9.5.x + Environment: PHP 7.4 & MySQL 5.7
    last update 11 months ago
    63 pass
  • ๐Ÿ‡ฎ๐Ÿ‡ณIndia sourabhjain

    I have updated the changes suggested in #16. Please review.

  • ๐Ÿ‡บ๐Ÿ‡ธUnited States Kristen Pol Santa Cruz, CA, USA

    Niceโ€ฆ thanks @sourabhjain and thanks for the interdiff even though the patch is tiny :) I might be able to test and merge tonight or tomorrow.

  • Status changed to RTBC 10 months ago
  • ๐Ÿ‡จ๐Ÿ‡ดColombia Chris-01

    Hi everyone Iยดve been reviewing the patch proposed by sourabhjain in #18 and I notice that the text itยดs right. Attached evidence.

Production build 0.69.0 2024