Closed Bug 785455 Opened 13 years ago Closed 5 years ago

Kuma: Editor - Link lookup is returning the first match instead of best match

Categories

(developer.mozilla.org Graveyard :: Editing, defect, P5)

defect

Tracking

(Not tracked)

RESOLVED WONTFIX

People

(Reporter: sheppy, Unassigned)

References

Details

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
Closed: 13 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 → ---
Priority: -- → P1
Version: Kuma → unspecified
Component: Docs Platform → Editing
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.
Blocks: 957649
Blocks: 1032827
Priority: P2 → P5
MDN Web Docs' bug reporting has now moved to GitHub. From now on, please file content bugs at https://github.com/mdn/sprints/issues/ and platform bugs at https://github.com/mdn/kuma/issues/.
Status: REOPENED → RESOLVED
Closed: 13 years ago5 years ago
Resolution: --- → WONTFIX
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in before you can comment on or make changes to this bug.