-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)Link components (LinkControl, URLInput) and integrations (RichText link formatting)[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
When a navigation link does not have a url, but does have a title, the selection from the LinkPicker will overwrite the link's title instead of preserving it.
Step-by-step reproduction instructions
- Edit a navigation to have an empty link via the code editor view:
<!-- wp:navigation-link {"label":"Empty Link"} /--> - Select this block via the list view (selecting it on canvas opens the link ui popover on canvas)
- Use the Link Picker in the inspector sidebar to select a new link
- The title "Empty Link" will be overwritten by the selected page title.
Screenshots, screen recording, code snippet
Screen.Recording.2025-12-15.at.9.51.29.AM.mov
Environment info
No response
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
Please confirm which theme type you used for testing.
- Block
- Classic
- Hybrid (e.g. classic with theme.json)
- Not sure
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Feature] Link EditingLink components (LinkControl, URLInput) and integrations (RichText link formatting)Link components (LinkControl, URLInput) and integrations (RichText link formatting)[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended