-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Navigation: Default to creating Page Links #50432
Comments
CC: @scruffian @draganescu as I think you were involved in both the initial PR and can resurface the context that caused us to need to revert. 🙏 |
I may be wrong but I am not sure it worked like that ever. The navigation block inserted custom links by default. Page and post are just variations of custom link and we use these variations for specific improvements, like keeping page link URIs in sync. The change was reverted because it created a flow where one would only be able to add a custom link by transforming a page link to a custom link, or something like that. |
The way I see it, the reason we have a "Page Link" variation in the first place, is so that we can suggest pages in the URL link dialog. If we aren't going to do that, we shouldn't have link variations at all. To be clear, I don't think that's a solution, because overwhelmingly when you build out menus on your site, you'll want to link to content on your site.
I only vaguely recall the slack thread, I recall the use case was valid enough. But it'd be good to get to the bottom of this so we can solve that flow. Custom link, conceptually, are any random link you can add, which has no relation to content on your site. |
@jasmussen I was just adding context - I agree with you that we should improve in the direction of being presented with a LinkUI that favors your site's content and then random external links. |
@richtabor I think you've done some work on the link UI. Will this issue be addressed as part of that work? If yes, then we can maybe connect this one with the link UI tracking issue. What do you think? |
Yes, I'll connect the dots. Putting together the issues today. |
@draganescu just doing a little triage, can we pick this one back up? Does it need to be added to any tracking issues? |
I am investigating the current situation as the comments across the issues confuse me. |
So as it stands now:
To change this behavior we'd need to figure out:
The reason the original attempt was reverted was b/c the above was not solved and the only way to get any other kind of link when auto insert was active, was to add a bogus page then transform that to custom link. Obvisously a broken design. Also the question still remains of what is the value of changing the current behavior. The custom link is providing all the tools to find and create pages, to link to posts and to link to external links, all from a simple popover. If you type in a page that doesn't exist, you need to be able to create a new page, or it should become a custom link. This used to work, but may have regressed since the Page Link block doesn't allow you to create a page, but the "custom link" does.
All kinds of links allow for page creation as a default. There is no difference, maybe there was something but now in trunk no matter the variation, if you search you're offered the page creation (draft) option. That all being said, I think we should close this issue. |
The problem with dropping you into the custom links field is that it suggests literally anything, whereas it really should suggest pages, which is what you'll arguably be linking to 80% of the time. Here it's suggesting fonts 😅 Can we make it so that when it inserts a page link, it suggests the following scrollable list of pages from #50891: But as soon as you search, if if you just paste a full URL, it searches everything? |
That is different than what this issue asks for. We need to change what the default suggestions are across the link UI, it may be part of the link control refresh effort, and it's unrelated to the navigation block's functionality. |
I'm not suggesting changing the default suggestions across the link UI. I'm saying the link UI needs to show pages when invoked from the Page Link block, and can show other suggestions when opened from the Custom Link block. |
I created an issue for what I believe is the real issue here: #53904 |
@jasmussen this is already happening: if you add a link item in the navigation block and search for a page, and select it, the custom link block will turn in a page link variation of itself. By effect, if you try to edit the link it will suggest pages. I don't think this is what you want. You want the default suggestions when adding a navigation item to be pages, not after, before the custom link is setup. That change is not about the navigation block "defaulting to pages" it's about improving how we show suggestions. What needs to happen is to always initially suggest pages. Once the search starts suggest whatever matches but always prioritise pages. |
Happy to close this one if I'm missing nuance, and I'd appreciate @richtabor input as well, as he's been deep in the design of the link control. Just to clarify, given the types of different menu items you might add across pages, posts, categories, links, CPTs, and in principle even types of social links, we have an opportunity for the link control to be aware of the block that opens it, and suggest accordingly. If the link control is a single unified control that always suggests pages (ideally in a scrollable tree-view matching the site structure as outlined), that would be better than what we have today, but it would also make the different menu block variations mostly meaningless. At that point we could have simply a single "Menu Item" block, instead of several different ones. But then you'd have to search for the name of a category to pick one, right? |
No because we always want to allow users to find what they mean to find when making a link. We can infer that if the link is open from a navigation block we should suggest pages, and prioritize pages in results. That's about it.
I'll close it in favor of #53904 |
In the navigation block, if you go into the "add new menu item" quick inserter, it should default to page links. If you type in a page that doesn't exist, you need to be able to create a new page, or it should become a custom link. This used to work, but may have regressed since the Page Link block doesn't allow you to create a page, but the "custom link" does.
Late in the 6.2 effort, a change was pushed to default to page links again, but was reverted. Let's revisit the reasons causing the revert, and fix those issues so Page Links can be default again.
The text was updated successfully, but these errors were encountered: