Skip to content

Editor: Link preview overflows with long strings and only shows postname #62414

@hrkhal

Description

@hrkhal

Description

The Link Preview in the unified publishing details overflows when long strings are present in the post name and it does not show the full url path.

Enterprise users would expect to see the full url path in the preview at a glance. Displaying the full path would better align with what was in 6.4 and what our users expect.

Screenshot 2024-06-07 at 13 34 18

Step-by-step reproduction instructions

  1. Go to permalink settings and set a custom structure of /%year%/%monthnum%/%day%/%postname%-%post_id%/
  2. Create a new post, give it a post name of /helloworldhelloworldhelloworld
  3. Observe that a) the link preview does not wrap and b) that the preview is only the post name

I would expect the link preview to a) wrap long strings and b) display /2024/06/07/helloworldhelloworldhelloworld-1

Screenshots, screen recording, code snippet

Screenshot 2024-06-07 at 13 23 03

Environment info

Please confirm that you have searched existing issues in the repo.

Yes

Please confirm that you have tested with all plugins deactivated except Gutenberg.

Yes

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)[Status] In ProgressTracking issues with work in progress[Type] BugAn existing feature does not function as intended

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions