Use entity link title for link control preview#77155
Conversation
If we are displaying a bound entity link, use the bound entity link title in the link control preview. If there is none, fallback to the current system of richData.title, navigation link block title, then url.
|
The following accounts have interacted with this PR and/or linked issues. I will continue to update these lists as activity occurs. You can also manually ask me to refresh this list by adding the If you're merging code through a pull request on GitHub, copy and paste the following into the bottom of the merge commit message. To understand the WordPress project's expectations around crediting contributors, please review the Contributor Attribution page in the Core Handbook. |
|
Size Change: +24 B (0%) Total Size: 7.74 MB 📦 View Changed
ℹ️ View Unchanged
|
|
Flaky tests detected in 3befe95. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/24144124157
|
t-hamano
left a comment
There was a problem hiding this comment.
LGTM! This change makes sense.
What?
#77057 exposed an inconsistency between the sidebar inspector link preview and link control link preview. The link title shows the RichData title which often includes the site. This wasn't our design intention for the link previews.
Why?
Consistency between link previews.
How?
When we have a bound entity link, we should use the bound entity link title in the link control preview. If there is none, fallback to
richText.title || navigation block title || navigation block urlTesting Instructions
Page title - site titleTesting Instructions for Keyboard
Screenshots or screencast
Screen.Recording.2026-04-08.at.10.36.02.AM.mov
Use of AI Tools
Assistance from Claude Sonnet 4.6