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)
developer.mozilla.org Graveyard
Editing
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? :)
Comment 1•13 years ago
|
||
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... ?
Comment 2•13 years ago
|
||
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
Updated•13 years ago
|
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Reporter | ||
Comment 3•13 years ago
|
||
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.
Reporter | ||
Updated•13 years ago
|
Status: RESOLVED → REOPENED
Resolution: FIXED → ---
Updated•13 years ago
|
Priority: -- → P1
Assignee | ||
Updated•13 years ago
|
Version: Kuma → unspecified
Assignee | ||
Updated•13 years ago
|
Component: Docs Platform → Editing
Reporter | ||
Comment 5•11 years ago
|
||
(In reply to ali spivak from comment #4)
> Is this still a feature we need to add??
Yes.
Blocks: 957649
Updated•7 years ago
|
Priority: P2 → P5
Comment 6•5 years ago
|
||
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 ago → 5 years ago
Resolution: --- → WONTFIX
Updated•5 years ago
|
Product: developer.mozilla.org → developer.mozilla.org Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•