Link Module - Add an optionless link test

Created on 16 April 2014, almost 11 years ago
Updated 21 March 2025, 15 days ago

Problem/Motivation

While doing some D8 migration testing #2233883: Link migration needs to convert source url into the appropriate route format for storage β†’ , an issue was found that may be partly caused by the Link module not properly handling having no options (URL fragment, query, and attributes) when programmatically saved.

Proposed resolution

Fix core to allow saving programmatically when the options are null.
( Do not rely on the loading and saving the form, which forces a call to /Drupal/Link/Plugin/Field/FieldWidget/LinkWidget massageFormValues() )

Remaining tasks

User interface changes

No.

API changes

No.

πŸ“Œ Task
Status

Postponed: needs info

Version

11.0 πŸ”₯

Component

link.module

Created by

πŸ‡ΊπŸ‡ΈUnited States ultimike Florida, USA

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

  • stale-issue-cleanup

    To track issues in the developing policy for closing stale issues, [Policy, no patch] closing older issues

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 smustgrave

    Thank you for creating this issue to improve Drupal.

    We are working to decide if this task is still relevant to a currently supported version of Drupal. There hasn't been any discussion here for over 8 years which suggests that this has either been implemented or is no longer relevant. Your thoughts on this will allow a decision to be made.

    Since we need more information to move forward with this issue, the status is now Postponed (maintainer needs more info). If we don't receive additional information to help with the issue, it may be closed after three months.

    Thanks!

Production build 0.71.5 2024