Customise initial suggestions in Navigation Link to show Pages by default #35104
Labels
[Block] Navigation Link
Affects the Navigation Link Block
[Feature] Link Editing
Link components (LinkControl, URLInput) and integrations (RichText link formatting)
[Type] Enhancement
A suggestion for improvement.
What problem does this address?
Prompted by experiments and discussions around Navigation Link block defaults and variations in #34899 and #35056.
When inserting a Navigation Link with no specific variation, the link control should show Pages by default in the initial suggestions. We want to optimise Navigation Link for adding Pages, because that is likely the most used type, while still providing the flexibility to search for other post types or taxonomies in the link control search bar.
What is your proposed solution?
Look into Link Control component to see if any changes are needed there, or if we can pass it parameters to customise the initial suggestions query. (I haven't looked into this beyond noticing there is a
showInitialSuggestions
prop for LinkControl that is a boolean, and it's not obvious from the list of props if those suggestions can be customised.)Ideally we'd be able to provide LinkControl with query parameters for the initial suggestions, without limiting subsequent queries from the search bar to those particular parameters.
The text was updated successfully, but these errors were encountered: