Redirect source widget should not be available for other entities

Created on 12 January 2024, 6 months ago
Updated 4 April 2024, 3 months ago

Problem/Motivation

The redirect source widget is available for any link fields which can cause confusion to site builders. Since (according to the note above the widget annotation) this is meant only for the source field of the redirect entity lets make it only applicable to the redirect entity.

Steps to reproduce

  • Install redirect module
  • Add a content type and add a link field to it
  • Go to the form display for the content type and click the drop down for the link field widget. Redirect source will be available for selection.

Proposed resolution

Use the field widget isApplicable function to only apply the widget to the redirect entity.

Remaining tasks

- Discuss

User interface changes

None for redirect module. Redirect source will be removed as an option from link fields elsewhere on Drupal.

🐛 Bug report
Status

RTBC

Version

1.0

Component

Code

Created by

🇨🇦Canada pavlosdan

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

Merge Requests

Comments & Activities

Production build 0.69.0 2024