Skip to content

Block Editor: LinkControl: Migrate suggestions rendering to URLInput #22439

Open

Description

@aduth

Previously: #18061 (comment)

As discussed in #18061, the new LinkControl component can be considered as a composite component of URLInput, plus labeling behaviors associated with similar *Control input control components. In this model, URLInput should be considered a very barebones component whose sole responsibility should be to render an input field and associated URL autocompletion results from which to pick a value.

Currently, URLInput is enhanced to support "custom" rendering behavior of suggestions, which is leveraged by LinkControl to customize the appearance of its suggestions. These should be migrated to URLInput and considered to be the new default appearance of URL suggestions. The motivation for this is to assure consistency of link suggestions for all use of URLInput (UX), and avoid the maintenance cost associated with maintaining multiple implementations of search result appearances (DevX).

Activity

  1. added
    [Type] Task
    [Package] Block editor
    [Feature] Link Editing
    on May 18, 2020
  2. paaljoachim commented on May 19, 2020

    @paaljoachim
    Contributor

    This issue might be associated:
    #17293

    In regards to: "Make link selection consistent"

  3. aduth commented on Aug 28, 2026

    @aduth
    MemberAuthor

    cc @mirka for awareness, this might be something we'd address as part of adapting URLInput to use Autocomplete components in @wordpress/ui ?

  4. mirka commented on Aug 28, 2026

    @mirka
    Member

    I'm not familiar with the relationship between LinkControl and URLInput, but we can definitely explore it as part of the migration (cc @jeryj).

  5. aduth commented on Aug 28, 2026

    @aduth
    MemberAuthor

    There's a bit of additional context in #22438 about that relationship, or at least how I perceived it at the time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Link Editing[Package] Block editor[Type] Task

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions