You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Navigation] Category/Custom taxonomy links are not searchable in the Link inserter. #49107
#48740 made the directly inserted block a Page Link block.
However, when searching for categories and other taxonomies such as product_cat, these do not appear in the results. This means converting to a custom link, then searching.
cc @Mamaduka@ntsekouras@ndiego This bug was reported today during RC. If fixable in time, it can be included in 6.2 RC3. I put it into the 6.2 Project Board.
There is no real quick fix solution here other than not defaulting to a Page link (which was recently added) and going back to a Custom Link.
I would recommend we go with that approach.
The Page link variation of the Navigation Link block is set up specifically to return search results that are Pages. In a future release we could explore improving the logic in fetchLinkSuggestions to handle providing fallbacks in case a Page isn't available but I wouldn't recommend doing something like that during an RC.
If everyone is ok with it I would vote for rolling back the PR that introduced using Page as the default.
I would also recommend that we revert the defaulting to page and go back to custom link. I agree with the intent behind the change but the change itself is not sufficient, because the way the block works limits searching to the type of the current navigation link variation - and that was a feature!
Changing how all that works is likely convoluted so reverting the change to default to page should be the best step for now.
Activity
hellofromtonya commentedon Mar 15, 2023
cc @Mamaduka @ntsekouras @ndiego This bug was reported today during RC. If fixable in time, it can be included in 6.2 RC3. I put it into the 6.2 Project Board.
getdave commentedon Mar 15, 2023
There is no real quick fix solution here other than not defaulting to a Page link (which was recently added) and going back to a Custom Link.
I would recommend we go with that approach.
The Page link variation of the Navigation Link block is set up specifically to return search results that are Pages. In a future release we could explore improving the logic in
fetchLinkSuggestionsto handle providing fallbacks in case a Page isn't available but I wouldn't recommend doing something like that during an RC.If everyone is ok with it I would vote for rolling back the PR that introduced using Page as the default.
draganescu commentedon Mar 16, 2023
I would also recommend that we revert the defaulting to page and go back to custom link. I agree with the intent behind the change but the change itself is not sufficient, because the way the block works limits searching to the type of the current navigation link variation - and that was a feature!
Changing how all that works is likely convoluted so reverting the change to default to page should be the best step for now.
scruffian commentedon Mar 16, 2023
Created a revert here: #49126
hellofromtonya commentedon Mar 16, 2023
Thank everyone for quickly assessing and resolving this issue for WP 6.2 RC3!