It seems to me that the most likely candidate for links, by default, would be the highest-level (rather than deepest) article that contains that name. For example, if I choose the text "Gecko" and invoke the link editor, the default URL that comes up is, for some reason, "/en-US/docs/Accessibility/AT-APIs/Gecko" rather than what you almost always actually mean: "/en-US/docs/Gecko". This is weird. Presumably this is because it's choosing the alphabetically first match instead of using some kind of actual logic. Can we use some logic? :)
I'm trying to think of how to best accomplish this. The only thing I can think of hear is keeping the title order, but adding an additional order by shortest slug... ?
Commits pushed to master at https://github.com/mozilla/kuma https://github.com/mozilla/kuma/commit/56516009d38a68cad7666e8b540751dbabe38ba8 fix bug 785455 - most 'simple' term match first https://github.com/mozilla/kuma/commit/c583574cccfa9ec70e91b4790f35e01b403949e3 Merge pull request #561 from darkwing/autosuggest-order-785455 fix bug 785455 - most 'simple' term match first
Status: NEW → RESOLVED
Last Resolved: 6 years ago
Resolution: --- → FIXED
This doesn't seem to resolve this problem fully; adding a link to the word "Gecko" is still picking by default a page called "Gecko" nested down in the accessibility tree of the site, instead of simply /en-US/docs/Gecko, which is almost always what people really want.
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Component: Docs Platform → Editing
Product: Mozilla Developer Network → Mozilla Developer Network
Is this still a feature we need to add??
Priority: P1 → P2
(In reply to ali spivak from comment #4) > Is this still a feature we need to add?? Yes.
You need to log in before you can comment on or make changes to this bug.