All the fields border color changes to red when we enter an invalid URL

Created on 8 July 2022, almost 3 years ago
Updated 24 February 2023, over 2 years ago

Problem/Motivation

When we enter an invalid URL, all the fields border color change to red

Steps to reproduce

Set a Link type field to use widget "Link (with Attributes)".

Go to add/edit page for the respective content type (or any entity type) and set a wrong URL respective to the format (htts://www.google.com)

Proposed resolution

Change the validation system, put in error only the url part and not all the fields of the link.

πŸ› Bug report
Status

Active

Version

9.5

Component
LinkΒ  β†’

Last updated 2 days ago

Created by

πŸ‡²πŸ‡¦Morocco jamaoui

Live updates comments and jobs are added and updated live.
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.

  • πŸ‡§πŸ‡©Bangladesh eashika
  • πŸ‡§πŸ‡©Bangladesh eashika
  • @enaznin opened merge request.
  • Status changed to Needs review over 2 years ago
  • πŸ‡§πŸ‡©Bangladesh eashika
  • Status changed to Needs work over 2 years ago
  • πŸ‡ΊπŸ‡ΈUnited States smustgrave

    This issue is being reviewed by the kind folks in Slack, #needs-review-queue-initiative. We are working to keep the size of Needs Review queue [2700+ issues] to around 400 (1 month or less), following Review a patch or merge request β†’ as a guide.

    As a bug this will need a test case.

    Since it's changing the UI before/after screenshots should be added to the issue summary after the final patch.

  • πŸ‡§πŸ‡©Bangladesh eashika

    Added after screenshot

  • First commit to issue fork.
  • πŸ‡§πŸ‡·Brazil carolpettirossi Campinas - SP

    I'm trying to review this issue and help with tests. However, the Issue summary is not complete.
    I couldn't find the widget "Link (with Attributes)" in the Manage Form Display tab.

    @enaznin, can you please update the Issue Summary adding more details about field type, field widget, and modules that must be enabled?

    Thanks :)

  • Issue was unassigned.
  • Status changed to Active 4 months ago
  • πŸ‡ΊπŸ‡ΈUnited States dcam

    As mentioned in #12, there is no Link (with Attributes) widget in Drupal Core. That belongs to the Link Attributes widget module. I'm moving this issue to that queue.

  • πŸ‡ΊπŸ‡ΈUnited States dcam

    Attempt 2 to change the project.

Production build 0.71.5 2024